MRZ Check Digits
id_mrzParses ICAO 9303 TD1/TD3 MRZ and verifies check digits — format check, not identity proof.
Machine-readable zones on passports and ID cards carry ICAO 9303 check digits (weights 7,3,1). This parses TD3 (2×44, typical passport) and TD1 (3×30, typical ID card) and reports each field check. A mismatched check digit is HTTP 200 with valid:false — the string is still an MRZ, just inconsistent. This is a format check, not identity proof: it does not confirm the document was issued or that the holder is who they claim.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mrz | Yes | ICAO 9303 MRZ text: TD3 two lines of 44, or TD1 three lines of 30. |