- MRZ
MRZ is "Machine Readable Zone"—typically on a passport. This "zone" is used by an electronic
scanning device that is capable of interpreting the data by usingOptical character recognition . For instance, while crossing a border in an airport, apassport is put into this device and the MRZ is read by apassport-reader .For technical description, see ISO/IEC 7501-1:1997, ISO/IEC 7501-2:1997, and ISO/IEC 7501-03:1997 or the International Civil Aviation Organization document "ICAO Document 9303".
----Here is an example of the fields in a 2 line MRZ, used in passports. Each line contains 44 characters, only characters A through Z, 0 through 9, and the filler character "<" are allowed:
----PTiiinnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn #########CbbbYYMMDDCsyymmddCppppppppppppppCX The meaning of the fields in this example is following:
* P - document type (the value "P" designates a passport)* T - document sub-type (the issuing party uses this field to distinguish between different types of documents; if unused a "<" is assigned)
* iii - Issuing Country (country or organization, encoded in three characters, based on ISO 3166 alpha-3 codes, used by United Nations Statistics Division)
* nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn - Name (uppercase)(the general format is "LAST
* ######### - Document Number (This is the document number, as assigned by the issuing authority) * C - Check digit (calculation based on the previous field: the first check digit is based on the document number, the next is based on the date of birth, the next on the expiration date, and the next on the personal number)
* bbb - Nationality (the issuing country or organization, encoded in three characters)
* YYMMDD - Date of Birth (document holder's birth in YYMMDD form)
* S - Sex (Sex of the document holder: M for males, F for females, "<" for non-specified)
* yymmdd - document expiration date (in YYMMDD form)
* pppppppppppppp - Personal Identification Number, context - country (in case the given country supports citizen identification codes or numbering)
* X - Final check digit (calculated for positions 1 to 10, 14 to 20, and 22 to 43 on the second line: nationality and sex are excluded from the check)
----
Check Digit Calculations
* The input is broken into individual characteres and numbers.
* Non-digits are converted into numbers. A through Z are encoded to 10 through 35. The filler character < is encoded as 0:
* Each number is multiplied by the corresponding weighting. The first digit is multipled by 7, the next by 3, and the next by 1. The pattern then repeats (7, 3, 1, 7, 3, 1, 7, 3, 1, etc).
* The results are added up, then divided by 10. The remainder is the check digit.
An example for the input AB2134:
Division: 125 ÷ 10 = 12, remainder 5
Check digit value X=5.
Wikimedia Foundation. 2010.