Liveness Check
Liveness API
POST https://{vida.host}/biometrics/v2/services/face/liveliness
Headers
Authorization*
OAuth access token.
Get the token by calling the
Authentication API
Content-Type*
application/json
Format type of request body
Request Body
image*
String
Data URI scheme, Base64 encoded image.
partnerTrxId*
String
A partner can optionally send a transaction id to co-relate their transaction with VIDA transaction. However, it is an optional parameter and is maintained by the partner.
imgManipulationCheckEnabled
boolean
Enable this option to identify morph patterns commonly present in photoshopped images, generated swapped selfie images, and deep fakes.
API Response
Liveness Detection Successful
HTTP Status Code: 200
The success response in live selfie will consist of:
score
transactionId.
The liveness score ranges from 0 to 1. The score of 0 (zero) represents maximum liveness, and the score of 1 represents minimum liveness of the selfie. The default threshold is a 0.95 score.
Liveness Score below the Threshold
HTTP Status Code: 200
The system detected a higher confidence of spoofed or hacked selfie when the liveness score >= 0.95.
The success response in spoof or hacked selfie will consist of:
score
transactionId
The liveness score ranges from 0 to 1. The score of 0 (zero) represents maximum liveness and the score of 1 represents minimum liveness of the selfie. The default threshold is a 0.95 score.
Face Occluded
HTTP Status Code: 400
The face in the selfie is occluded by an object.
Face Too Small
HTTP Status Code: 400
The face size area is smaller than 50 x 50 pixels.
Image quality low
HTTP Status Code: 400
The system captures the possibility of broken image, corrupted image, or low quality.
Multiple faces detected
HTTP Status Code: 400
Multiple faces are detected in the frame.
No face detected
HTTP Status Code: 400
No face object found in the image frame.
Unnatural Colour Detected
HTTP Status Code: 400
Damaged image or saturated image is detected.
Under Exposure Detected
HTTP Status Code: 400
A low lighting selfie is detected.
Over Exposure Detected
HTTP Status Code: 400
Overexposure or blown-out highlights in a selfie are detected.
Blurry Image Detected
HTTP Status Code: 400
Blurry conditions or defocused face in a selfie are detected.
Multiple Error Example
The error response format in case of multiple error.
HTTP Status Code: 400
Over Exposure, Image is Blur and Unnatural color
Unnatural Color and Under Exposure
Unnatural Color and Blur Image
Last updated
