Skip to main content

Face Match

Module Description

The Face Match module determines whether two facial images belong to the same person.

info

The Face Match module verifies whether two images belong to the same person.It neither checks the completeness, quality of the face passed as input, nor does it validate whether the inputs are selfies or ID images. The model simply compares the two images and returns whether it is a match or not.

For proper input validation and reliable results, it is recommended to invoke the Selfie Validation module before the Face Match step. Please refer to our Selfie Validation and Quality Checks documents for more details.

Module Inputs

The module supports the following input types:

  1. Selfie and Selfie
  2. Selfie and ID Card Image
  3. ID Card and ID Card Image

Module Configurations

The accuracy of Face Match depends on how inputs are configured. Incorrect mapping (for example, passing selfie on the ID instead of a full ID) can cause lower accuracy and integration issues. To avoid this, ensure each flow is mapped correctly to one of the supported Face Match types:

  • selfie - A selfie image in JPEG, PNG or TIFF format.
  • id - An image of the ID card in JPEG, PNG or TIFF format.

This match type compares a selfie against a complete ID card image.

Module Outputs

The following information is returned in the Results API:

Success Scenario

{
"module": "Selfie ID Match API",
"moduleId":"selfie_id_match_api",
"selfieImageUrl": "<URL>",
"idImageUrl": "<URL>",
"apiResponse": {
"status": "success",
"statusCode": 200,
"metadata": {
"requestId": "<Request_ID>",
"transactionId": "<Transaction_ID>"
},
"result": {
"details": {
"match": {
"value": "yes",
"confidence": "high"
}
},
"summary": {
"action": "pass",
"details": []
}
}
}
}

Understanding the Response

KeyDescriptionValues Possible
moduleIdID of the moduleselfie_id_match_api
moduleName of the module that was setup in your workflow config'Face Match'
apiResponseThe API results provided by HyperVerge's backend. If there were multiple attempts made by the user, this key will contain the latest attemptJSON
selfieImageUrlSinged URL of the selfie image used in this module. This URL would be valid for a duration of 15 minutesURL
idImageUrlSinged URL of the ID image used in this module. This URL would be valid for a duration of 15 minutesURL

Understanding 'apiResponse'

KeyDescriptionValues Possible
match.valueThis key tells if the faces have matched(yes) or not matched(no)yes`no`
match.confidenceHow confident is the AI model about it's predictionhigh/low
summaryA final summary based on the checks performed in the module
What is summary?
Default Summary Config
JSON

Failure Scenarios

Below is the response in Results API for a typical error scenario.

{
"module": "Selfie ID Match API",
"moduleId" : "selfie_id_match_api",
"selfieImageUrl": "<URL>",
"idImageUrl": "<URL>",
"apiResponse": {
"status": "failure",
"statusCode": 400,
"metadata": {
"requestId": "<Request_ID>",
"transactionId": "<Transaction_ID>"
},
"result": {
"error": "Face not detected in one or more images",
"summary": {
"action": "manualReview",
"details": [
{
"code": "118",
"message": "Face not detected in one or more images"
}
]
}
}
}
}

List of Errors Possible

Below are all the errors possible in this module. The 'statusCode' is present under apiResponse

StatusCodeSummaryDescription
400Face not detectedIf a face is not detected in either or both of the images
429Rate limit errorWhen the number of requests per minute has crossed the set limit for your credentials
5xxServer ErrorPlease reachout to HyperVerge

Default Summary Configuration

Scenario'Action' in summary
Face Match FailedManual Review
Face not detected in one or both imagesManual Review
Was this helpful?
Ask AIBeta
Hi! How can I help?
Ask me anything about HyperVerge products, APIs, and SDKs.
Try asking: