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

Ionic Capacitor

Faceplugin ID Document Recognition Ionic Capacitor SDK. On-premise OCR, MRZ, and authenticity. document-reader-capacitor plugin for new Ionic apps.

Fully on-premise ID Document Recognition SDK for Ionic Capacitor. Package: document-reader-capacitor. Prefer this for new Ionic apps. Cordova is a different repo.

ionic serve / the browser cannot load the engine. Open Android Studio or Xcode and run on a physical phone.

Parse results with Document result JSON.

Code

How to run

1

Install and build the plugin

2

Place native runtimes

Platform
File
Example / plugin path

Android

documentreadersdk.aar

example/android/libdocsdk/ (your app: node_modules/document-reader-capacitor/android/libs/)

iOS

docsdk.framework

ios/Frameworks/

3

Sync and run

Or npx cap open ios. Add camera + photo-library permissions.

APIs

Status codes: 0 Success, 1 Invalid license, 2 Expired, 3 Not activated, 4 Init failed.

Call order: getMachineCode → setActivation → init → locateDocument / recognize → deinit.

setActivation: This API is used to activate the SDK

init: This API is used to initialize the SDK

getMachineCode: This API is used to retrieve the machine code

locateDocument: This API is used to find document corners on a preview frame

recognize: This API is used to run FullProcess

documentRecognition: This API is used to run OCR / MRZ / barcode / image quality only

documentLiveness: This API is used to run authenticity / security only

Also: getLicenseStatus, startNewSession, startLivePreview / takeLiveSnapshot, deinit.

Request a License & Support · Contact us

FAQ

Package? document-reader-capacitor. Prefer Capacitor over Cordova.

JSON contract? Document result JSON.

Last updated