Liveness Detection
There are 2 steps for Liveness Detection Service.
-
Step 1: Integrate the SDK for Android
-
Step 2: Request Liveness Detection to get the liveness score
1 Integrate the SDK
For Android
2 Liveness Detection V1
Code Sample:
Example of Success Response:
Example of success response (detail = 1):
Example of multiple faces (detail = 1):
Example of no liveness face (detail = 1):
Example of eyes closed (detail = 1):
Example of age dissatisfaction (detail = 1):
Example of image error Response:
Example of request parameter error Response:
Example of image format error Response:
Example of image larger than 2M error Response:
Example of server error Response:
Request Url
POST https://api.ekycpro.com/v1/picturelive
Request Parameters:
Parameter | Description |
---|---|
img | string , Base64 encoded image, the picture from the live video |
country | string , Country abbreviation. Mexico: MX, India: IN, Thailand:TH
, Indonesia:ID
|
detail | optional ,string , when detail=1 return the no pass reason. |
Defautl Response Description:
Parameter | Description |
---|---|
status | status code |
message | live_score :Liveness Detection Score[0-100] |
Detail Response Description
parameter | description |
---|---|
status | status code |
message | is_liveness :whether the liveness detection passed live_score :liveness score [0-100] reason :success、eyes closed、no liveness face、face incomplete、face dark、face blur、no face detected、multiple faces |
Status Code:
Status | Message |
---|---|
OK | charge ,Recognize success |
FAIL | charge ,Image error |
INVALID_REQUEST | free ,Wrong request parameter |
IMAGE_INVALID_FORMAT | free ,Image format is not supported, only PNG, JPG, JPEG, BMP are supported |
IMAGE_INVALID_SIZE | free ,The image size should be less than 2M after base64 encoding |
INNER_ERROR | free ,System error |