Server-side ID document liveness / spoof detection for Linux, exposed through a Python interface with ready-to-run Flask and Gradio demos. Determines whether a presented ID is a genuine physical card or a spoof (screen capture, printed copy, or photocopy).
Part of the FaceOnLive on-premises biometric SDK suite.
- Detect screen-replay, print, and photocopy ID spoofing.
- On-premises and offline; REST (Flask) and web-UI (Gradio) demos included.
- Online (env-var key) and offline (
license.txt) activation.
| OS | Linux x86-64 |
| Runtime | Python 3.8+ |
| Engine | native ID-liveness engine (included) |
- Get a license key — free trial at https://faceonlive.com.
- Provide the key via the
LICENSE_KEYenvironment variable (online) orlicense.txt(offline). - Install requirements, then run a demo:
python flask/app.py # REST API python gradio/app.py # web UI
import os
from engine.header import *
# Online activation from an environment variable
set_activation(os.environ["LICENSE_KEY"].encode("utf-8")) # setLicenseKey
init_sdk() # initSDK| Binding | Native | Description |
|---|---|---|
get_deviceid() |
getHWID |
Machine hardware ID (for offline licensing). |
set_activation(key) |
setLicenseKey |
Activate the SDK. |
init_sdk() |
initSDK |
Initialize the engine. |
Requires a valid license key — get one at faceonlive.com. Keep license.txt out of version control. Questions: contact@faceonlive.com
This repository contains the source/demo code only. Download the complete SDK — engine libraries and models, with full project structure — from the Releases page and extract it over this project.