Welcome to the MiniAiLive!
Welcome to the ID Document Liveness Detection SDK! MiniAiLive's Complete Document Liveness Detection Solution for Digital Onboarding here! With 70% of fraud in digital onboarding and KYC happening with document fraud—or document presentation attacks—identity verification is a critical line of defense against the financial and reputational damage of document fraud. That’s where document liveness detection software comes in. It detects when an identity document is not genuine but instead a document presentation attack. With our product suite, you can address the three most common presentation attacks universally across all the common types of identity documents anywhere in the world without needing to train on document templates. Try it out today!
Note
- Our SDK is fully on-premise, processing all happens on hosting server and no data leaves server.
- Python 3.6+
- Windows
- CPU: 2cores or more
- RAM: 4GB or more
-
Download the ID Document Liveness Detection Windows Server Installer:
Download the Server installer for your operating system from the following link:
-
Install the On-premise Server:
Run the installer and follow the on-screen instructions to complete the installation.
-
Request License and Update:
Run MIRequest.exe file to generate a license request file. You can find it here.
CC:\Users\Dev-1\AppData\Local\MiniAiLive\MiniAiLive-IDLiveness-WinServer
Open it, generate a license request file, and send it to us via email or WhatsApp. We will send the license based on your Unique Request file, then you can upload the license file to allow to use. Refer the below images.
-
Verify Installation:
After installation, verify that the On-premise Server is correctly installed by checking the task manager:
POST http://127.0.0.1:8093/api/check_id_liveness
ID Document Liveness Detection APIPOST http://127.0.0.1:8093/api/check_id_liveness_base64
ID Document Liveness Detection API
- URL:
http://127.0.0.1:8093/api/check_id_liveness
- Method:
POST
- Form Data:
image
: The image file (PNG, JPG, etc.) to be analyzed. This should be provided as a file upload.
![Screenshot 2024-07-16 at 5 12 01 AM](https://private-user-images.githubusercontent.com/127708602/352224895-d8c35a5a-3556-4975-b457-a3e601a7d730.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU4MTgxOTUsIm5iZiI6MTcyNTgxNzg5NSwicGF0aCI6Ii8xMjc3MDg2MDIvMzUyMjI0ODk1LWQ4YzM1YTVhLTM1NTYtNDk3NS1iNDU3LWEzZTYwMWE3ZDczMC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTA4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkwOFQxNzUxMzVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0wNmM2NzYwNDYwNGZlMWQyNGJmMjBjMTc5NTk2ZDYzZDlhZjMwMWE1YjRhOTAwNGMwZGY1N2Y1MmQ2ZThhZmJkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.xbNibwh_UWVmPmDu3ZvJaRLcoREQTUUiy0atJqsgNEI)
- URL:
http://127.0.0.1:8093/api/check_id_liveness_base64
- Method:
POST
- Raw Data:
JSON Format
: { "image": "--base64 image data here--" }
![Screenshot 2024-07-16 at 5 11 34 AM](https://private-user-images.githubusercontent.com/127708602/352224928-6621a288-6bcf-4703-bba2-60c35c05fe84.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU4MTgxOTUsIm5iZiI6MTcyNTgxNzg5NSwicGF0aCI6Ii8xMjc3MDg2MDIvMzUyMjI0OTI4LTY2MjFhMjg4LTZiY2YtNDcwMy1iYmEyLTYwYzM1YzA1ZmU4NC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTA4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkwOFQxNzUxMzVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lZjcwMTE5ZjVmYTVlZTM4OTI5NmI3YTAyNzQ3YWVmM2E2ZGFlMmJhZWY0YzljYjQ2NmVkMDUyZGQ3ZGVmY2UwJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.MrrYs3clZLzT9bgjH52LcU8Ug0ft3o8ZoV7hVGR45SI)
The API returns a JSON object with the ID document liveness detection details. Here is an example response:
We have included a Gradio demo to showcase the capabilities of our ID Document Liveness Detection SDK. Gradio is a Python library that allows you to quickly create user interfaces for machine learning models.
-
Install Gradio:
First, you need to install Gradio. You can do this using pip:
git clone https://github.com/MiniAiLive/ID-Document-LivenessDetection-Windows-SDK.git pip install -r requirement.txt cd gradio
-
Run Gradio Demo:
python app.py
To help you get started with using the API, here is a comprehensive example of how to interact with the ID Document Liveness Detection API using Python. You can use API with another language you want to use like C++, C#, Ruby, Java, Javascript, and more
- Python 3.6+
requests
library (you can install it usingpip install requests
)
This example demonstrates how to send an image file to the API endpoint and process the response.
import requests
# URL of the web API endpoint
url = 'http://127.0.0.1:8093/api/check_id_liveness'
# Path to the image file you want to send
image_path = './test_image.jpg'
# Read the image file and send it as form data
files = {'image': open(image_path, 'rb')}
try:
# Send POST request
response = requests.post(url, files=files)
# Check if the request was successful
if response.status_code == 200:
print('Request was successful!')
# Parse the JSON response
response_data = response.json()
print('Response Data:', response_data)
else:
print('Request failed with status code:', response.status_code)
print('Response content:', response.text)
except requests.exceptions.RequestException as e:
print('An error occurred:', e)
Feel free to Contact US to get a trial License. We are 24/7 online on WhatsApp: +19162702374.
Contributions are welcome! If you'd like to contribute to this project, please follow these steps:
1. Fork the repository.
2. Create a new branch for your feature or bug fix.
3. Make your changes and commit them with descriptive messages.
4. Push your changes to your forked repository.
5. Submit a pull request to the original repository.
Please visit our ID API Web Demo here. https://demo.miniai.live
No | Project | Feature |
---|---|---|
1 | FaceRecognition-LivenessDetection-Android-SDK | Face Matching, 3D Face Passive Liveness |
2 | FaceRecognition-LivenessDetection-Windows-SDK | Face Matching, 3D Face Passive Liveness |
3 | FaceLivenessDetection-Android-SDK | 3D Face Passive Liveness |
4 | FaceLivenessDetection-Linux-SDK | 3D Face Passive Liveness |
5 | FaceLivenessDetection-Windows-SDK | 3D Face Passive Liveness |
6 | FaceMatching-Android-SDK | 1:1 Face Matching |
7 | FaceMatching-Windows-Demo | 1:1 Face Matching |
8 | FaceAttributes-Android-SDK | Face Attributes |
9 | ID-Document-Recognition-Android-SDK | ID Document, Credit, MRZ Recognition |
10 | ID-Document-Recognition-Linux-SDK | ID Document, Credit, MRZ Recognition |
11 | ID-Document-Recognition-Windows-SDK | ID Document, Credit, MRZ Recognition |
12 | ID-Document-LivenessDetection-Linux-SDK | ID Document Liveness Detection |
13 | ID-Document-LivenessDetection-Windows-SDK | ID Document Liveness Detection |
MiniAiLive is a leading AI solutions company specializing in computer vision and machine learning technologies. We provide cutting-edge solutions for various industries, leveraging the power of AI to drive innovation and efficiency.
For any inquiries or questions, please Contact US