# MRZ

### 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](https://en.wikipedia.org/wiki/ICAO) Document 9303 (endorsed by the [International Organization for Standardization](https://en.wikipedia.org/wiki/International_Organization_for_Standardization) and the [International Electrotechnical Commission](https://en.wikipedia.org/wiki/International_Electrotechnical_Commission) as ISO/IEC 7501-1)).

### Examples of documents with MRZ

![The 2-line MRZ can be found, for example, in Belarusian international passport](https://3475598747-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LB5JwL5qMLwIKvbzSxV%2F-LB5KGppK-dNmki726RL%2F-LB5N7PngB6HedhfRrnd%2Fimage.png?alt=media\&token=9aa4ecf1-81c1-421b-87f2-1493246c27d4)

![The 3-line MRZ see on this example of Kazakhstan identity card](https://3475598747-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LB5JwL5qMLwIKvbzSxV%2F-LB5KGppK-dNmki726RL%2F-LB5N_zWp2NJ-0LgWPye%2Fimage.png?alt=media\&token=854e0f38-1492-4317-b67e-f64cb03e1828)

### 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 |
|                                    |                                                                                              |
