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.
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.
95Compare
Works with
Packages commonly used together with document_camera_frame: ones it builds on, ones built on it, and its own family.
- path_providerdocument_camera_frame depends on itProvides Flutter APIs to locate common filesystem directories on Android, iOS, macOS, Linux and Windows.
- imagedocument_camera_frame depends on itPure Dart library to load, manipulate, encode, and decode various image formats.
- pdfdocument_camera_frame depends on itA PDF generation library for Dart and Flutter using a widget-like layout system.
- flutter_animatedocument_camera_frame depends on itAdd animated effects and builders in Flutter via a unified, customizable chainable API.
- cameradocument_camera_frame depends on itFlutter plugin to preview, capture photos/video and stream camera images.
- google_mlkit_text_recognitiondocument_camera_frame depends on itFlutter plugin to use Google's ML Kit Text Recognition on Android and iOS.
- google_mlkit_document_scannerdocument_camera_frame depends on itFlutter plugin to use Google's ML Kit document scanner API to digitize physical documents.
- google_mlkit_object_detectiondocument_camera_frame depends on itDetect and track objects in images or live camera feeds using Google's ML Kit.