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

Flutter

Faceplugin ID Document Recognition Flutter SDK. On-premise OCR, MRZ, and authenticity. document_reader_sdk plugin for Android and iOS.

Fully on-premise ID Document Recognition SDK for Flutter. Package: document_reader_sdk. Android output is normalized to the iOS-shaped JSON. Parse it with Document result JSON.

Code

How to Run

1

Install tools

Flutter 3.44+ (see the package pubspec.yaml). JDK 17. Run flutter doctor and fix reported issues.

2

Clone and bootstrap

3

Place native runtimes

Platform
File
Example app path
Your own app path

Android

documentreadersdk.aar

example/android/libdocsdk/

Plugin android/libs/

iOS

docsdk.framework

ios/Frameworks/

Plugin ios/Frameworks/

4

Run the example

Physical phone. Keep Android com.faceplugin.documentreader, iOS com.faceplugin.documentreader.app.

License

Licenses are offline. Request a new license key for your own app.

Integrate into your own app

Then flutter pub get, copy runtimes, cd ios && pod install, and rebuild the native app.

Authenticity accepts true / false or 'normal' / 'none'. Image input: file path, file:// URI, content URI, or base64 / data: URL.

APIs

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

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, recognizeResult (typed DocResult), deinit.

Request a License & Support · Contact us

FAQ

Package? document_reader_sdk.

Passport OCR? Yes. recognize / documentProcess. Typed helper: recognizeResult.

Last updated