Face Match
Use this API to verify the facial features of your customer in one image with another. You can compare an image with another image or with an image in an ID. View the test data and use the information to trigger the validations. The test data are usable only in the test environment sandbox.
Authorizations
Client ID. You can find your ID in the Merchant Dashboard.
Client secret key. You can find your secret key in the Merchant Dashboard.
Body
Find the request parameters to verify facial features in two images
It is the scanned copy of Image 1. Allowed file types are JPEG, JPG, and PNG, with a maximum file size of 10 MB for each file.
It is the scanned copy of Image 2. Allowed file types are JPEG, JPG, and PNG, with a maximum file size of 10 MB for each file.
It is the unique ID you need to create to identify the verification request. The maximum character limit is 50, and only alphanumeric characters, periods (.), hyphens (-), and underscores (_) are allowed.
It is a boolean value to align the images horizontally before analysing the facial features.
It is a boolean value to identify whether the person in the first image is wearing a mask.
It is a boolean value to identify whether the person in the second image is wearing a mask.
It is the value to distinguish and match the facial features of the two images. The range is between 0 and 1. The default value is set as 0.7. We conclude that the images match when the analysis is or greater than the value set for threshold.
Range: 0 < x < 1
Response
Success response for Face Match API
It displays the result of the face match verification request. Possible values are:
YES
: The face match is positive i.e. the given 2 photos match.NO
: The face match is negative i.e. the given 2 photos don't match.
It displays the score of the face match verification request.
Range: 0 < x < 1
It displays whether the individual in the image 1 is wearing a mask. Possible values are:
true
: Individual is wearing a mask.false
: Individual is not wearing a mask.
It displays the score of the mask detection analysis for image 1.
Range: 0 < x < 1
It displays the score of the mask detection analysis for image 2.
Range: 0 < x < 1
It displays whether the individual in the image 2 is wearing a mask. Possible values are:
true
: Individual is wearing a mask.false
: Individual is not wearing a mask.
It displays the unique ID created by Cashfree Payments for reference purposes.
format: int64
It displays the status of the API request. Possible values are:
SUCCESS
: A successful face match returns all fields in the response.
It displays the unique ID you created to identify the API request.
Was this page helpful?