Selfie Face Comparison

Overview

Compare face with face in ID card and decide whether they are from the same person

Image Requirements

Format : JPG (JPEG), PNG Size : between 112 x 112 and 40964096 (pixels) Minimal size of face : The bounding box of a detected face is a square. The minimal side length of a square should be no less than 112 pixels.

Return Values

Response Definition

Compare face with face in ID card and decide whether they are from the same person

POST https://apis.aigen.online/aiface/selfie-doc-compare/v1

Request Body

{
  "request_id": "string",
  "confidence": 100,
  "thresholds": {
    "err_01": 45.92,
    "err_001": 54.36,
    "err_0001": 59.71
  },
  "time_used": 0,
  "error_message": "error_message"
}
import requests
import json

api = "https://apis.aigen.online/aiface/selfie-doc-compare/v1"
headers = {"x-aigen-key": "<key>", "content-type": "application/json"}
data = json.dumps({
    "image": "<base64_string>"
})

res = requests.post(api, data=data, headers=headers)
print(res.json())

Last updated