Skip to content

FaceOnLive/Face-Liveness-Detection-SDK-Linux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Update (Mar 1, 2024): Introduce OpenKYC Community Project, build your own eKYC solution and contribute at this https://github.com/FaceOnLive/OpenKYC.

Update (Oct 26, 2023): We are on Hugging Face, get your own SDK Servers by duplicating spaces at https://huggingface.co/FaceOnLive.

Update (Apr 10, 2023): Our API portal is now live, offering free APIs for various AI solutions, including face recognition, liveness detection, and ID document recognition.
Make sure to check it out at https://getapi.faceonlive.com and take advantage of our free offerings.

Face Liveness Detection SDK For Linux

Fully Offline, On-Premise Face Liveness Detection SDK for Linux

www.faceonlive.comwww.faceonlive.comwww.faceonlive.comwww.faceonlive.com



🎉 Try It Yourself on our Portfolio Website

Integrated into Huggingface Spaces 🤗 using Gradio. Try out the Web Demo: Hugging Face Spaces

💪 Partnership / Cooperation / Project Discussion



fast.mp4

👏 Supporters

Stargazers repo roster for @faceonlive/Face-Liveness-Detection-SDK-Linux Forkers repo roster for @faceonlive/Face-Liveness-Detection-SDK-Linux

Animated footer bars

🏃 How to run

1. Download and install dependencies

To begin, follow these steps to download and install the necessary dependencies:

git clone https://github.com/FaceOnLive/Face-Liveness-Detection-SDK-Linux
cd Face-Liveness-Detection-SDK-Linux
chmod +x ./install_dependency.sh
sudo ./install_dependency.sh

2. Execute the Python Flask application

Next, run the Python Flask application by executing the following command:

python3 app.py

3. Activate the SDK

- Online License

If you have an online license, please update the license key provided by us in the following file:

licenseKey = "XXXXX-XXXXX-XXXXX-XXXXX"

- Offline License

If you have an offline license, please share your machine's HWID (Hardware ID) with us to receive the license.txt file. Update the HWID in the following file:

licensePath = "license.txt"

online init failed: 6
hwid:  IXwjedMe8M5cZX/GwU3NEOqJRcqLwldq27HSLyFiejbGDB9XVgytA1RgJukV3mWWTNo84NwTMYU=

4. Using Docker

  • Build the Docker image:
sudo docker build --pull --rm -f Dockerfile -t faceonlive_v7:latest .
  • Run Docker with online license:
sudo docker docker run --network host faceonlive_v7
  • Run Docker with offline license:
sudo docker run -v license.txt:/root/FaceOnLive_v7/license.txt --network host faceonlive_v7

5. Test endpoint

To test the endpoint, download the Postman Collection from the following link: FaceOnLive.postman_collection.json

image

image