MRZ
Machine-readable zone
Description
This method finds a machine-readable zone on the image and extracts data from it. Machine-readable zone (MRZ) is typically found on official travel or identity documents of many countries. It can have 2 lines or 3 lines of machine-readable data. This method allows to process MRZ written in accordance with ICAO Document 9303 (endorsed by the International Organization for Standardization and the International Electrotechnical Commission as ISO/IEC 7501-1)).
Examples of documents with MRZ


Possible field types of the machine-readable zone
FieldType
Field logical types determined by the constants of this enumeration. Examples described below made for Belarusian password from above.
Below describe typical information. If you didn't any find information which do you want, please, take a look at this.
Field type
Description
ft_Surname_And_Given_Names
surname and given name(s). Example: SAYAPIN ANDREI
ft_Age
age. Example: 35
ft_Issuing_State_Code
issuing state code in compliance with3166-1 standard (ICAO doc 9303). Example: BLR
ft_Document_Number
document number. Example: MP2417879
ft_Date_of_Expiry
expiry date of the document. Example: 04/26/2028
ft_Date_of_Birth
date of birth. Example: 04/26/1983
ft_Place_of_Birth
place of birth.
ft_Personal_Number
personal number. Example: 3260483A011PB6
ft_Surname
surname. Example: "SAYAPIN"
ft_Given_Names
given name(s). Example: "ANDREI"
ft_Mothers_Name
mother's name.
ft_Nationality
nationality
ft_Sex
sex. Example: "M"
ft_Nationality_Code
nationality code in compliance with ISO3166-1 standard (ICAO doc 9303). Example: "BLR"
ft_Issuing_State_Name
issuing state name. Example: Belarus
ft_MRZ_Strings
P<BLRSAYAPIN<<ANDREI<<<<<<<<<<<<<<<<<<<<<<<<\nMP24178795BLR8304265M28042683260483A011PB648
Last updated