Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

OCR Service

Facephi OCR Service is a REST API service written in modern C++ that uses Facephi OCR SDK as a powerful tool to help read and verify identity documents and invoices using Facephi technology.

The service provides the endpoints /process and /process_multi, through which you can submit documents and retrieve information from them.

JWT authentication can optionally be enabled when starting the service via config.json or through the environment variables FACEPHI_OCR_REST_AUTH_*. When JWT is enabled, GET /api/v1/version and GET /api/v1/health remain public, while protected endpoints require a valid JWT. JWT startup settings are never exposed through GET /api/v1/config or can be modified through POST /api/v1/config.

More information can be found in Technical specifications.

Supported image formats for identity documents:

  • JPG

  • PNG

  • BMP

  • HDR

Supported file format for invoices:

  • PDF

The main distribution contains the following resources:

  • Docker container. The container is available in the Facephi Docker repository and is based on Ubuntu 24.04. It includes the service and all the dependencies required to run it.

Flowchart

ocr-service flowchart: check license, run ocr, run interpreter

Last updated