ID Document Liveness Detection SDK
This stands for ID document liveness detection, ID document liveness check, ID document anti-spoofing, ID document fraudulent check, fraud prevention, biometric fraud by mitigating biometric fraud.
Features
System Requirement
1. Windows
CPU:2cores or more (Recommended:2cores)RAM:4 GBor more (Recommended:8 GB)HDD:4 GBor more (Recommended:8 GB)OS: Windows 7 or laterArchitecture:
x64
2. Linux
CPU:2cores or more (Recommended:2cores)RAM:4 GBor more (Recommended:8 GB)HDD:4 GBor more (Recommended:8 GB)OS:Ubuntu 20.04or laterArchitecture:
x64
How to Run SDK from Docker Image
pull docker image
run docker
SDK License
The Docker image utilizes KBY-AI's SDK, which requires a license for each machine or instance on which it runs.
To get a
machine code(HWID) for license, run the following command:
To request the license, please provide us with the
machine code(HWID) obtained from your console.

We offer lifetime license(perpetual license) tied to machine code (HWID) from the server. The license is available for one-time payment.
Email:
[email protected]
Test API in KBY-AI Online Demo Page
The SDK can be tested against static image here.

Test API with Gradio Demo
To test the Gradio demo from the Docker image, access it at http://127.0.0.1:7860 or http://localhost:7860 after running Docker container.

API Instruction
API can be tested through Postman based on the following endpoint details.
1. Processing Image with File
APIendpoint:<base URL>/process_imageMethod:
POSTContent-type:
multipart/form-dataRequest Parameters:
ParameterTypeDescriptionimage
File
ID document image file with
*.jpgor*.pngextensionRequest example

2. Processing with Base64-Encoded String
APIendpoint:<base URL>/process_image_base64Method:
POSTContent-type:
application/jsonRequest Parameters:
ParameterTypeDescriptionbase64
String
The base64-encoded string of the ID document image
Request example

API Response Description in JSON
1. portraitReplace:
Type:
FloatDescription: A score indicating the likelihood that the portrait on the ID document has been tampered with or replaced. Higher values (closer to 1) suggest the portrait is likely original, while lower values may indicate potential tampering.
2. printedCopy:
Type:
FloatDescription: A score that assesses whether the document is a printed copy rather than an original document. Values close to zero suggest the document might be a printed copy, while higher values indicate originality.
3. screenReply:
Type:
FloatDescription: A score that determines if the document was displayed on a screen rather than being a physical ID. Lower values (closer to zero) imply a higher likelihood that the document is displayed on a screen.
4. Result status:
Type:
StringDescription: Indicates the status of the liveness check on the document. "Ok" typically means that the document passed initial verification. Other statuses could indicate different levels of authenticity or potential issues with the document.
Status:
Ok,Too close to camera!,Too close to border!,Document cropped!,Too small!,Multiple documents,Is Colorless!,Document not found!,UnknownResonpse Example:
Last updated