Skip to content
pubscout

google_mlkit_document_scanner

0.7.2, released 10 days ago by flutter-ml.dev

Flutter plugin to use Google's ML Kit document scanner API to digitize physical documents.

WASM-ready
$ flutter pub add google_mlkit_document_scanner
Source repository

What it does

Allows users to convert physical documents into digital formats using Google's ML Kit document scanner API. Provides a high-quality UI flow with automatic capture, edge detection, cropping, and filtering.

AI-written summary of version 0.7.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to scan physical documents on Android with built-in edge detection and cropping.
  • You want a consistent UI flow for document capture powered by Google Play services.

Skip it when

  • You need robust iOS document scanning support, as the feature is currently only available for Android.
  • You need to run document scanning on the web or other unsupported platforms.

Strengths

  • High-quality and consistent user interface for digitizing physical documents.
  • No camera permission is required from your app since it leverages Google Play services.
  • Low APK binary size impact.

Weaknesses

  • Feature is still in Beta and is only available for Android.
  • Relies on Google Play services being available on the target device.

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
0

Requires Android minSdkVersion 21, compileSdkVersion 36, and targetSdkVersion 36.

final documentScanner = DocumentScanner(options: DocumentScannerOptions());
DocumentScanningResult result = await documentScanner.scanDocument();

Alternatives

Packages that do the same job and could replace google_mlkit_document_scanner.

Works with

Packages commonly used together with google_mlkit_document_scanner: ones it builds on, ones built on it, and its own family.