Face Recognition SDK for Linux & Docker
Run face recognition with 1:N identification in a Docker container on your own Linux server, exposed as a local REST API. No images, templates, or match results ever leave your infrastructure.
What You Need to Run It on Linux
These are the exact minimum and recommended requirements published in the FaceRecognition-Docker repository — check the repo directly for the latest version, since SDK requirements can change between releases.
Install and Activate
Install the SDK, then activate it with a license key before calling any recognition function — every platform follows this same activate-then-initialize pattern.
- Pull the image (
faceplugin/face-recognition:latest, or:latest-plusfor the Plus edition) and run it on port 8092 with a 2 GB shared-memory allowance, mounting/etc/machine-idon Linux hosts. - Check
GET /api/healthto confirm the container is up — no license is needed to start it. - Get your machine code, send it to FacePlugin, then activate with
POST /api/activateand your license key. - Enroll people with
POST /api/persons, then identify any face against all of them withPOST /api/identify.
Server Deployment Notes
Operational details from the FaceRecognition-Docker README for running 1:1 and 1:N on your own Linux host.
Lite or Plus
Two engine editions share one API and file layout: faceplugin/face-recognition:latest (Lite) and :latest-plus (Plus, for higher-accuracy deployments). You can switch without changing your integration.
Run flags that matter
Start with --shm-size=2gb --privileged -p 8092:8092 and mount /etc/machine-id read-only on Linux. On Docker Desktop for macOS or Windows, omit the machine-id mount.
Machine codes differ
A Docker container and a native install have different machine codes. Request your license from the same environment you will run in production.
Persist the gallery
The gallery is a local SQLite database plus face crops in data/. Mount it as a volume or it disappears with the container.
Enrollment guardrails
Duplicate checking is on by default and returns code -7 (HTTP 409) when a face already matches another person. Send check_quality=true to reject blurry or turned faces with code -8 (HTTP 422).
Thresholds per request
The decision threshold is not hard-coded. Send threshold with a request, or change the stored default with PATCH /api/settings. top_k is per request.
Sizing and limits
Minimum 2 CPU cores, 4 GB RAM and 4 GB disk; recommended 4 cores, 8 GB and 8 GB. Uploads are capped at 20 MB by default (FACESDK_MAX_UPLOAD_MB), and the API binds to 127.0.0.1 unless you set FACESDK_BIND_HOST.
Running on a Windows server instead? Use the Windows face recognition SDK. Pair identification with the Linux liveness server to block spoofed probes.
How Licensing Works
Licenses are offline and bound to the machine code of the environment where the server runs. Docker and native installs get different machine codes, so request a key for whichever one runs in production. This product exposes recognition APIs only; liveness detection is a separate SDK with its own container and license. Once activated, there is no per-call metering.
Frequently Asked Questions
Does the Linux SDK send biometric data to the cloud?
No. Every stage of face recognition runs on your own server or directly on the device, depending on the platform – biometric templates never leave an environment you control.
How is the SDK licensed?
Licenses are offline and bound to the machine code of the environment where the server runs. Start the container without a license, read the machine code from the log or GET /api/machinecode, send it to FacePlugin, then activate with POST /api/activate. Docker and native installs have different machine codes. There are no per-call fees.
Where can I see the full source and open an issue?
The FaceRecognition-Docker integration is maintained publicly on GitHub at github.com/Faceplugin-ltd, where you can browse the code, file issues, and track releases.
Ready to Add Face Recognition to Your Linux App?
Talk to our team to get a license key and a 15-day evaluation period started.