MRZ Reader Activity
The MRZ Reader activity extracts Machine Readable Zone (MRZ) information from passports and ID cards. It processes either a raw MRZ string or an image file containing an MRZ to parse and return structured data.
| Field | Description | Requirement |
|---|---|---|
| MRZ string | The raw MRZ string to be processed. At least one of MRZ string or Image file name must be provided. | Optional |
| Image file name | The full path and name of the image file containing the MRZ. At least one of MRZ string or Image file name must be provided. | Optional |
| Response variable name | The name of the variable to store the activity's output, including parsed MRZ data. | Required |
Action Types & Examples
Country Code
- Format: string
- Example Result:
"UTO"
Sex
- Format: string
- Example Result:
"F"
Date of Birth
- Format: string (YYMMDD format)
- Example Result:
"740812"
Document Number
- Format: string
- Example Result:
"98902C3"
Full MRZ String
- Format: string
- Example Result:
"P<UTOERIKSSON<<ANNA<MARIA<<<<<<<<<<<<<<<<<<<n1898902C36UT07408122F1204159ZE184226B<<<<<10n"
Implementation Examples
Field Setup
Response variable name:mrzData
Execution Parameters (Using MRZ String)
MRZ string:"I<NATSURNAME<<NAME1<NAME2<<<<<<<<<<<1234567890NAT1212920F1212150<<<<<<<0"Response variable name:httpVariable
Execution Parameters (Using Image File)
Image file name:"C:RobustaCar.png"Response variable name:httpVariable
Technical Notes
The activity returns a JSON object containing parsed MRZ fields. Ensure that either the
MRZ stringorImage file nameparameter is provided for successful execution. If both are provided, theMRZ stringwill take precedence. Error handling should be implemented to manage cases of unreadable MRZ data or invalid image paths.