On-premise ID/passport OCR and MRZ HTTP API. Linux amd64. Port 8082.
871
On-premise ID / passport / document OCR and MRZ HTTP API. Linux amd64. Official image: faceplugin/document-reader.
The image is an API/SDK server only (no Gradio). Runtime libraries are already inside — no Google Drive download is required to pull and run.
| Tag | Notes |
|---|---|
latest | Same as latest-cpu |
latest-cpu | CPU image |
1.0.0-cpu | Versioned CPU image |
docker pull faceplugin/document-reader:latest
Default listen port 8082. Use --shm-size=2gb (the SDK unpacks models into /dev/shm; Docker’s 64MB default is too small).
docker run -d --name faceplugin-document-reader \
--shm-size=2gb --privileged \
-p 8082:8082 \
-v /etc/machine-id:/etc/machine-id:ro \
faceplugin/document-reader:latest
docker logs -f faceplugin-document-reader
# Look for the machine code line: FPMC1.…
API: http://127.0.0.1:8082
macOS / Windows Docker Desktop: omit -v /etc/machine-id:/etc/machine-id:ro (there is no host /etc/machine-id). Each container may get a different machine code.
The published image does not include a license. The API starts without one and prints a machine code (FPMC1.…). Product endpoints unlock after you activate.
GET /api/machinecode.FP1.…).# Paste the FP1. key into license.txt, then:
curl -s -X POST http://127.0.0.1:8082/api/activate \
-H 'Content-Type: text/plain' \
--data-binary @license.txt
Docker and native-host codes are different. If you run in Docker, send the Docker machine code.
On Linux, keep the machine-id mount so extra containers on the same host share one fingerprint. Use a new name and host port:
docker run -d --name faceplugin-document-reader-2 \
--shm-size=2gb --privileged \
-p 8083:8082 \
-v /etc/machine-id:/etc/machine-id:ro \
faceplugin/document-reader:latest
Activate each published port with the same key. Without the machine-id volume (typical Docker Desktop), codes can differ.
| Method | Path | Notes |
|---|---|---|
GET | /api/health | Liveness of the HTTP server |
GET | /api/machinecode | FPMC1.… |
GET | /api/backend | Product / backend |
POST | /api/activate | Raw license key (text/plain) |
POST | /api/documentProcess | ID / passport pages (images array or image) |
POST | /api/generalProcess | Single-image general OCR |
Health:
curl -s http://127.0.0.1:8082/api/health
Postman collection and native (non-Docker) setup: DocumentReader-Linux-App.
Content type
Image
Digest
sha256:d2c7cfc11…
Size
260 MB
Last updated
21 days ago
docker pull faceplugin/document-reader