flutter_mrz_scanner
2.3.0, released 6 weeks ago by leushchenko.com
Scan Machine Readable Zones from identity documents on iOS and Android.
What it does
Provides a Flutter widget to scan Machine Readable Zones (MRZ) from passports, IDs, and visas using the device camera. It supports multiple MRZ formats including TD1, TD2, TD3, MRV-A, and MRV-B.
AI-written summary of version 2.3.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to scan passport or ID card MRZ zones inside a mobile app
- You want a drop-in camera widget specifically designed for identity document reading
Skip it when
- You only need general barcode or QR scanning rather than OCR text/MRZ reading
- You cannot accept the maintenance state of the package or need active issue-resolution by the author
Strengths
- Supports multiple MRZ formats (TD1, TD2, TD3, MRV-A, MRV-B)
- Includes optional built-in overlay widget for alignment
Weaknesses
- The author explicitly states they lack testing devices and time, relying primarily on pull requests
- Requires platform-specific configuration and specific iOS deployment targets
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 1
Requires setting iOS deployment target to 13 and adding NSCameraUsageDescription in Info.plist. Swift Package Manager is recommended for iOS to support Apple Silicon simulators. Android camera permissions must be handled.
MRZScanner(
withOverlay: true,
onControllerCreated: (controller) => onControllerCreated(controller),
)Alternatives
Packages that do the same job and could replace flutter_mrz_scanner.
- mobile_scanner
If you need a more actively maintained general barcode and QR scanning solution.
95Compare - camera
If you want full raw control over the camera feed to build a custom processing pipeline.
95Compare
Works with
Packages commonly used together with flutter_mrz_scanner: ones it builds on, ones built on it, and its own family.