FacePlugin
Get in Touch
Linux

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.

CPU-only, no GPU requiredREST API or in-process PythonNo per-call fees
Woman scanning her face with a phone for 1:1 verification on the Linux SDK
Identity Verified
Face Match 99.98%
Requirements

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.

Host OSLinux with Docker Engine (Ubuntu 22.04 / 24.04 recommended); Docker also runs it on Windows and macOS
Without DockerLinux x86_64, glibc 2.38+, Python 3.10+ (Ubuntu 24.04 recommended)
CPU / RAM / Disk (min)2 cores / 4 GB / 4 GB
CPU / RAM / Disk (recommended)4 cores / 8 GB / 8 GB
Architecturelinux/amd64 (Apple Silicon hosts run via amd64 emulation)
EditionsLite (standard recognition engine) or Plus (premium engine for higher-accuracy deployments), with the same API
Quick Start

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-plus for the Plus edition) and run it on port 8092 with a 2 GB shared-memory allowance, mounting /etc/machine-id on Linux hosts.
  • Check GET /api/health to 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/activate and your license key.
  • Enroll people with POST /api/persons, then identify any face against all of them with POST /api/identify.
bash
# Health check (no license needed yet)
curl -s http://127.0.0.1:8092/api/health

# Machine code, then activate with your license key
curl -s http://127.0.0.1:8092/api/machinecode
curl -s -X POST http://127.0.0.1:8092/api/activate \
  -H 'Content-Type: text/plain' --data-binary @license.txt

# Enroll a person, then identify a probe photo (1:N)
curl -s -X POST http://127.0.0.1:8092/api/persons -F "image=@anna.jpg" -F "name=Anna Lee"
curl -s -X POST http://127.0.0.1:8092/api/identify -F "image=@probe.jpg"
Platform notes

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.

Licensing

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.

FAQ

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.

Related

Pairs Well With

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.