Version 1.8 [iBeta Level 1 Certified]

Check whether an input face image is genuine or fake.

POST https://api.iapp.co.th/facial_anti_spoofing/predict

This system is certified by iBeta Level 1 and is capable of detecting face spoofing attempts through various techniques, including printed photos, realistic face masks for impersonation, photos captured from computer screens, and video replays.

Headers

Name
Type
Description

apikey*

String

Your API Key to call this API

Request Body

Name
Type
Description

file*

File

The binary data of the image

Response

{
    "filename": "Image.jpeg",
    "predict": "SPOOF",
    "score": 0.9999590674225165,
    "darkness": 0.29,
    "data": {
        "SPOOF": 0.9999197721481323,
        "REAL": 8.024471753742546e-05
    },
    "normalized": {
        "SPOOF": 0.9999590674225165,
        "REAL": 4.093257748349899e-05
    },
    "status_code": 200,
    "duration": 0.38198,
    "message": "SUCCESS"
}
Name
Type
Description

filename

String

File name

predict

String

Prediction result, either REAL or SPOOF, based on the normalized score

score

Float

Prediction score after normalization

darkness

Float

Darkness level as a percentage

data

Dictionary

Prediction scores for both REAL and SPOOF categories before normalization

normalized

Dictionary

Prediction scores for both REAL and SPOOF categories after normalization

status_code

Integer

Status code indicating success or error in processing

duration

Float

Processing time duration

message

String

Result or error message from processing

Last updated