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

Try it

Try Faceplugin SDKs with copy-paste commands. Start with license-free curl health and machine-code checks, then activate the SDK and test face detection, face matching, liveness, and document OCR.

These snippets are meant to be copied as-is. You do not write a UI first. Start with health and machinecode (no license needed), then activate and call one process API. Full endpoint contracts: HTTP API.

Start with the server if you want the quickest test. Docker Hub + curl lets you test the SDK without Android Studio. Mobile snippets assume you have already run the demo once, with the required AAR/framework files in place and the demo license configured for the demo app ID.

1. Server — no license yet

Start any Linux/Windows server product, then:

curl -s http://127.0.0.1:8083/api/health
curl -s http://127.0.0.1:8083/api/machinecode

Change the port: ID Document Recognition (Document Reader) 8082, Face Recognition 8083, Face Liveness 8084, Document Liveness 8086.

health works before you have a key. Copy the server machine code (machine code) from machinecode and request a license.

2. Server — activate once

# license.txt contains one line: license key
curl -s -X POST http://127.0.0.1:8083/api/activate \
  -H 'Content-Type: text/plain' \
  --data-binary @license.txt

Success looks like "Successfully activated". The service also loads the engine on this call.

3. Server — try the main APIs for each product

Install: Face Recognition Linux SDK. Combined recognition + liveness in one package: Face Recognition + Liveness Linux (same port, adds /api/liveness).

Score ≥ 0.5 is Real / pass. JPEG only. Face Liveness Detection Linux SDK. Combined package on 8083: same body against /api/liveness on Recognition + Liveness Linux.

Combined pipeline: POST /api/documentProcess. Dedicated Document Liveness product: port 8086. ID Document Recognition Linux SDK.

Windows: use Git Bash or WSL for base64, or Python:

4. Mobile — after the demo compiles

Keep the demo application ID so the included license key license works. Call this on a background thread.

locateDocument is overlay-only (no OCR). Install: ID Document Recognition Android SDK.

Last updated