Face Liveness
Faceplugin Face Liveness HTTP API. POST /api/liveness (alias /api/check_liveness) with a JPEG on port 8084. Score 0.5 or higher is Real. CPU only.
This API scores one RGB JPEG for presentation attacks. Examples include a printed photo, a screen replay, a mask, or a deepfake-style spoof.
PAD means presentation attack detection (anti-spoofing).
It runs on Docker image faceplugin/face-liveness and on the Windows app. Default port 8084. The engine is CPU only.
Shared routes: Shared endpoints. A call without a liveness license returns code 8 with licenseError.
The combined Face Recognition + Liveness packages also expose /api/liveness on port 8083. See Face Recognition HTTP API.
Install and run: Face Liveness Detection Linux SDK · Face Liveness Detection Windows SDK.
Try it
curl -s -X POST http://127.0.0.1:8084/api/liveness \
-H 'Content-Type: application/json' \
-d "{\"image\":\"$(base64 -w0 face.jpg)\"}"POST /api/liveness
Alias: POST /api/check_liveness.
{ "image": "<BASE64-JPEG>", "algorithm": "all" }File field image (alias file). Optional text field algorithm.
Input
JPEG image. A missing image field returns envelope code: -1 and "image required".
Return value
Engine JSON. Score ≥ 0.5 means Real / pass true.
Example shape:
{ "score": 0.72, "result": "Real", "pass": true }Python:
Related documentation
Last updated