FacePlugin
Get in Touch
Linux

ID Document Recognition SDK for Linux & Docker

Run OCR, MRZ, and barcode document recognition in a single Docker container on your own Linux server, exposed as a local REST API. No document images or extracted data ever leave your infrastructure.

CPU-only, no GPU requiredREST API via DockerNo per-call fees
PASSPORT• AURORIA
SURNAME

WILLIAMS

GIVEN NAMES

ETHAN L.

DATE OF BIRTH

22 SEP 1992

DOCUMENT NO.

X8295147

P<AURWILLIAMS<<ETHAN<L<<<<<<<<
X8295147<7AUR9209226M3205184<<<<03
MRZ Verified✓
Barcode Valid✓
OCR Complete✓
Identity Verified
Requirements

What You Need to Run It on Linux

These are the exact minimum and recommended requirements published in the ID-Document-Recognition-Docker repository — check the repo directly for the latest version, since SDK requirements can change between releases.

Host OSUbuntu 20.04+ x86_64 (min), Ubuntu 22.04 / 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, CPU-only (local non-Docker install needs glibc 2.38+)
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 and run the Docker image: docker pull faceplugin/document-reader:latest.
  • Run the container with --shm-size=2gb --privileged on port 8082, mounting /etc/machine-id (skip this mount on Docker Desktop).
  • Check GET /api/health to confirm it's up, then send your machine code to FacePlugin for a license key and activate with POST /api/activate.
bash
# Health check
curl -s http://127.0.0.1:8082/api/health

# Activate with your license key
curl -s -X POST http://127.0.0.1:8082/api/activate \
  -H "Content-Type: text/plain" \
  --data-binary @license.txt

# Recognize a document
curl -s -X POST http://127.0.0.1:8082/api/documentRecognition \
  -H "Content-Type: application/json" \
  -d '{"images": [{"image": "<base64-jpeg>"}]}' 
Platform notes

Server Deployment Notes

Details from the ID-Document-Recognition-Docker README.

Shared memory is required

Run with --shm-size=2gb: the runtime extracts dcr.fpk to /dev/shm. Keep --privileged and the /etc/machine-id volume as documented; omit the machine-id mount on Docker Desktop.

Native glibc requirement

A non-Docker run needs glibc 2.38 or newer, for example Ubuntu 24.04. Check with ldd --version. No GPU is needed.

Port and first run

The API starts at port 8082 and prints a machine code. You do not need a license to start it; product endpoints unlock after activation.

Optional chip reading

The SDK also supports optional NFC / RFID chip reading and document authenticity checks for remote identity verification.

Several containers, one license

To run multiple containers on one Linux host with a shared machine code, follow the multi-container notes in the FacePlugin docs.

For a standalone authenticity-only service see the ID document liveness server. Windows hosts can use the Windows SDK.

Licensing

How Licensing Works

Licenses are offline and bound to a machine code – Docker and local-host installs get different machine codes, so request a key for whichever environment runs in production. License tiers cover Recognition, Liveness, or both. Unlimited on-premises inference, no per-call fees.

FAQ

Frequently Asked Questions

Does the Linux SDK send document data to the cloud?

No. Every stage of document recognition runs on your own server or directly on the device, depending on the platform – scanned documents never leave an environment you control.

How is the SDK licensed?

Licenses are offline and bound to a machine code. Start the container, 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.

Where can I see the full source and open an issue?

The Linux 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 Document Recognition to Your Linux App?

Talk to our team to get a license key and a 15-day evaluation period started.