public class FaceMatchResult extends DigifiedResult
Constructor and Description |
---|
FaceMatchResult(String message,
String nextProcess,
Integer overallStatus,
Integer result,
Boolean shouldTerminate,
String error,
ArrayList<String> errorCode,
Float congruence,
Float liveness)
Response of the "Face Matching request" of the API
Constructor for FaceMatchResult
|
Modifier and Type | Method and Description |
---|---|
Float |
getCongruence()
Getter method for
congruence : How the two images match (the higher is the better)
(value between 0-1). |
Float |
getLiveness()
Getter method for
liveness : Detecting the confidence of how much is the selfie
is real and not spoofed (the higher is the better) (value between 0-1). |
getError, getErrorCode, getMessage, getNextProcess, getOverallStatus, getResult, getShouldTerminate
public FaceMatchResult(String message, String nextProcess, Integer overallStatus, Integer result, Boolean shouldTerminate, String error, ArrayList<String> errorCode, Float congruence, Float liveness)
message
- "msg" in the API response, represents the recommended action for usernextProcess
- "next" in the API response, represents the next operationoverallStatus
- "overall_status" in the API response,
Enumeration representing overall status of the session:
(FAILED: 0, VERIFIED: 1, IN_PROGRESS: 2, PENDING: 3)result
- "result" in the API response,
indicating the session status: (SUCCESS: 0, HAS_ERRORS: -1, HAS_WARNINGS: 1)shouldTerminate
- "should_terminate" in the API response,
False if there will be a next op-state / try, True otherwiseerror
- "Error" in the API response, the error messageerrorCode
- "code" in the API response, the error codecongruence
- "congruence" in the API response,
How the two images match (the higher is the better) (value between 0-1).liveness
- "liveness" in the API response,
Detecting the confidence of how much is the selfie is real and not spoofed
(the higher is the better) (value between 0-1).public Float getCongruence()
congruence
: How the two images match (the higher is the better)
(value between 0-1).public Float getLiveness()
liveness
: Detecting the confidence of how much is the selfie
is real and not spoofed (the higher is the better) (value between 0-1).