API Documentation

Face Verification API

Face Verification

POST https://api.iapp.co.th/face_compare

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

Headers

Request Body

{
    "message": "successfully performed",
    "process_time": 0.3729121685028076,
    "result": "matched",
    "similarity_score": 0.5220710916461694
}

Parameter in Response

Sample Requests

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

// Use score of each company
--form 'company="{Your Company Name}"'

// Use min_score
--form 'min_score="{Your Minimun Score}"'

Face Verification Tool

Default Score Configuration

GET https://api.iapp.co.th/face_config_score

This URL be for configure the default score of face verification for each company or check the default score

Query Parameters

Headers

{
    "company": "iApp",
    "comparison_score": 0.4,
    "detection_score": 0.98,
    "message": "the minimum score of comparison has been successfully configured.",
}

Parameter in Response

Sample Requests

// Configure Score
curl --location -g --request GET 'https://api.iapp.co.th/face_config_score?detection={Detection Value}&comparison={Comparison Value}&company={Your Company Name}&password={Your Company Password}' \
--header 'apikey: {Your API Key}'
  
// Show Score
curl --location -g --request GET 'https://api.iapp.co.th/face_config_score?detection&comparison&company={Your Company Name}&password={Your Company Password}' \
--header 'apikey: {Your API Key}'

Last updated