Table of contents

Demo and Samples

MRZScanner Demo

Samples

Four samples scan the MRZ on a passport or ID card using the ready-to-use MRZScannerActivity. They come in two pairs — a minimal one and a complete one — each available in Java and Kotlin.

All four are modules of a single Gradle project. Open android/samples in Android Studio rather than an individual sample folder, then choose the run configuration you want. Each declares its own application ID, so all four can be installed on one device and compared side by side.

ScanMRZBasic

The smallest thing that scans an MRZ and shows the result: one activity, a button, and the parsed fields on the same screen. 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 screen, a tabbed pager for the document images from both sides, per-field validation explanations, and camera-permission recovery. The ScanMRZ Demo App goes through it section by section.

Within each pair the Kotlin version is a direct translation that shares the layouts, resources, and screen flow, so pick whichever language matches your project.

A physical device is required to run any of the samples. The Android Emulator does not expose a camera.

Next Steps

This page is compatible for: