FaceSDK - Linux
Face Recognition Linux Server SDK
Our SDK is fully on-premise, processing all happens on hosting server and no data leaves your server.
Installation
Prerequisites
Python 3.6+
Linux
CPU: 2 cores or more
RAM: 4GB or more
Installation Steps
Download the Face 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. Go to the Download folder and run this command.
Request License and Update You can generate the License Request file by using this command:
Then you can see the license request file on your directory, 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 using this command:
If you can see 'Mini-faceliveness-svc.service', the server has been installed successfully. Refer the below image.
API Reference
Endpoint
POST
http://127.0.0.1:8092/api/check_liveness
<Face Liveness Detection API>
Form Data:
image
: The image file (PNG, JPG, etc.) to be analyzed. This should be provided as a file upload
POST
http://127.0.0.1:8092/api/check_liveness_base64
<Face Liveness Detection API>
Raw Data:
JSON Format
:
Response
The API returns a JSON object with the liveness result of the input face image. Here is an example response
Testing API
Gradio Demo
We have included a Gradio demo to showcase the capabilities of our MiniAiLive Face Liveness Detection SDK. Gradio is a Python library that allows you to quickly create user interfaces for machine learning models.
How to Run the Gradio Demo
Install Gradio:
First, you need to install Gradio. You can do this using pip:
Run Gradio Demo:
Python Test API Example
To help you get started with using the API, here is a comprehensive example of how to interact with the Face Liveness Detection API using Python. You can use API with another language you want to use like C++, C#, Ruby, Java, Javascript, and more
Prerequisites
Python 3.6+
requests
library (you can install it usingpip install requests
)
Example Script
This example demonstrates how to send an image file to the API endpoint and process the response.
Face & IDSDK Online Demo, Resources
Our Products
Request license
Feel free to Contact US to get a trial License. We are 24/7 online on WhatsApp: +19162702374.
Last updated