Demo and Samples
MRZ Scanner Demo
Samples
Two samples scan the MRZ on a passport or ID card using the ready-to-use MRZScanner: a minimal one and a complete one. Both run on Android and iOS.
They’re separate projects in one repository. In Visual Studio Code, choose which one to run with .NET MAUI: Select Startup Project, or open a sample’s own folder. Each declares its own application ID, so both can be installed on one device.
ScanMRZBasic
The smallest thing that scans an MRZ and shows the result: one page, a button, and the parsed fields on the same page. This is the app the MRZ Scanner User Guide builds step by step.
ScanMRZ
A complete app built on the same SDK calls, adding a dedicated result page, document images from both sides, per-field validation explanations, and camera-permission recovery. The ScanMRZ Demo App goes through it section by section.
A physical device is required to run either sample. Simulators and most emulators don’t expose a camera.
Next Steps
- MRZ Scanner User Guide — build
ScanMRZBasicfrom an empty project. - ScanMRZ Demo App — how the complete sample builds its result page.
- Customizing the MRZ Scanner — document type, UI elements, feedback, and camera permission.
- MAUI API Reference — all classes and methods.