latestOpenAPI 3.0.32026-08-12367267.0 KB
cda4b2b11372
Get a similarity score for two faces
The minimum recommended face size in the picture is 80 pixels. If the face size is between 65-79 pixels, an error code will be returned along with the similarity score.
Parameters:
- companyKey (string, required) - The company's secret key.
- face1 (file, required) - A JPEG or PDF file for face1
- face2 (file, required) - A JPEG or PDF file for face2
post/compare-faces
Request body
Example request
{
"companyKey": "your-company-secret-key",
"face1": {
"contentType": "application/pdf"
},
"face2": {
"contentType": "application/pdf"
}
}Response
Success
Example response
{
"result": {
"similarity": 0.9399788229619535,
"face1Statuses": [],
"face2Statuses": []
}
}