API Documentation

Face Verification API

This URL allows you to verify two faces. by submitting the results and scores for the similarity of the two faces.

POST https://api.iapp.co.th/face-verification/v2/face_compare

Headers

Name
Type
Description

apikey*

String

The API Key to call this API

Request Body

Name
Type
Description

file1*

File or String

The binary or Base64 data of the image

file2*

File

The binary data of the image

threshold

Number

Threshold score for face matching decision. Default value is 36. To achieve very low False Acceptance Rate (FAR), you can set it to 48.

{
    "duration": 2.1263949871063232,
    "matched": true,
    "message": "successfully performed",
    "score": 38.0,
    "threshold": 37
}

Parameter in Response

Name
Type
Description

duration

Float

The processing time

matched

Boolean

The similarity result of verification

message

String

The status message

score

Intergal

The similarity score of verification

threshold

Intergal

The threshold of verification score of profile name

Sample Requests

curl --location --request POST 'https://api.iapp.co.th/face-verification/v2/face_compare' \
--header 'apikey: {Your API Key}' \
--form 'file1=@"{Your Image File Path 1}"' \
--form 'file2=@"{Your Image File Path 2}"' 

Last updated