Skip to content
pubscout

document_camera_frame

2.6.13, released 4 weeks ago by ahmedzein.dev

Capture and crop document images with a customizable camera interface and edge detection.

$ flutter pub add document_camera_frame
Source repository

What it does

Provides a Flutter widget for scanning, cropping, and extracting text from physical documents. Features live camera preview, edge detection, perspective correction, on-device OCR, and multiple export formats.

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

Use it when

  • You need to scan physical documents or IDs with edge detection.
  • You want on-device OCR without external API dependencies.

Skip it when

  • You require non-Latin OCR support like Arabic.
  • You need basic barcode or QR scanning instead of full document capture.

Strengths

  • Offline-first with zero external network calls.
  • Supports multiple UI modes including native CamScanner delegation.
  • Multiple export formats including JPG, PNG, PDF, and TIFF.

Weaknesses

  • OCR is Latin-only.
  • Requires specific Android SDK versions (minSdk 24, compileSdk 36).

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
No
Direct dependencies
8

Requires Android compileSdk 36 and minSdk 24 for the camera implementation.

Future<void> launchCamera(BuildContext context) async {
  final DocumentCaptureData? result = await Navigator.push<DocumentCaptureData>(
    context,
    MaterialPageRoute(
      builder: (_) => DocumentCameraFrame(
        frameWidth: 320,
        frameHeight: 200,
        requireBothSides: true,
      ),
    ),
  );
}

Alternatives

Packages that do the same job and could replace document_camera_frame.

  • mobile_scanner

    If you primarily need QR and barcode scanning rather than full document capture and perspective correction.

Works with

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