PLATFORMS << NATIVE MOBILE

MRZ Scanner for Android

An Android library with the camera screen, AR mode and photo scanning.

  • PackageMRZScannerAR (AAR)
  • RequiresAndroid 7 (API 24) and later
  • Version2.5.0
  1. 1InstallGet the SDK from Downloads in the portal.
  2. 2Register your keyA 90-day trial key comes with your account; register it once at start.
  3. 3ScanOpen the camera or scan a photo; read the MRZ text and the parsed fields.

Install

The Android library (AAR) is under Downloads in the portal.

Scan a document

Androidkotlin
MrzScan.registerLicense(context, "MRZ2...")   // once, at start

val scan = registerForActivityResult(MrzScan.Contract()) { resultJson ->
    // {"status":"read","reads":[{"text":"P<UTO...","fields":{...},"checkDigitsValid":true}]}
}
scan.launch("""{"documentTypes":["passport","id"]}""")

val fromPhoto = MrzScan.scanImage(context, """{"path":"$photoPath"}""")

Also available for