YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
Product & Resources
For more information, visit KBY-AI's GitHub Repository.
SDK License
This Docker image utilizes KBY-AI's SDK, which requires a license for each machine or instance on which it runs.
- To get the machine code (
HWID) for license, use the following syntax:
sudo docker run -e LICENSE="xxxxx" kbyai/idl:latest
Contact us:
๐งEmail: contact@kby-ai.com
๐งTelegram: @kbyaisupport
๐งWhatsApp: +13348402323
๐งDiscord: KBY-AI
๐งTeams: KBY-AI
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.
API Instruction
API can be tested through Postman based on the following endpoint details.
1. Processing Image with File
APIendpoint:<base URL>/process_image- Method:
POST - Content-type:
multipart/form-data - Request Parameters:
Parameter Type Description image File ID document image file with *.jpgor*.pngextension - Request example
2. Processing with Base64-Encoded String
APIendpoint:<base URL>/process_image_base64- Method:
POST - Content-type:
application/json - Request Parameters:
Parameter Type Description base64 String The base64-encoded string of the ID document image - Request example
API Response Description in JSON
1. portraitReplace:
- Type:
Float - Description: 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:
Float - Description: 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:
Float - Description: 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:
String - Description: 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!,Unknown - Resonpse Example:
{
"result": {
"portraitReplace": 0.590566158294678,
"printedCopy": 2.0435e-11,
"screenReply": 0.002031173091382,
"status": "Ok"
},
"resultCode": "Ok"
}
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐ Ask for provider support