At the bottom of the photo page of an American passport is a bunch of alphanumeric information interspersed with right facing angle brackets (>). What information does this code contain?
The International Civil Aviation Organization (ICAO) is responsible for setting up standards for Machine Readable Travel Documents (MRTD). MRTD makes it easy for automated travel documents checking. It’s much faster and less tends to make mistakes than manual input.
MRTD have a Machine Readable Zone (MRZ) at the bottom. These MRZes are printed in the monospace font OCR-B. Passport is included in MRTD. It has two lines and each line has 44 characters. The following picture shows the pattern of a passport:
- As DetlevCM mentions in their comment, https://en.wikipedia.org/wiki/Machine-readable_passport is worth checking out too.
- ICAO Doc 9303 (mirror), which specifies Machine Readable Travel Documents.
- https://github.com/konstantint/PassportEye: "PassportEye: Python tools for image processing of identification documents."
- https://github.com/evermeer/PassportScanner: "With PassportScanner: use your camera to scan the MRZ code of a passport on iOS."
- https://github.com/DoubangoTelecom/ultimateMRZ-SDK: "This is state-of-the-art Machine Readable Zone / Travel Documents (MRZ / MRTD) dectector and recognizer using deep learning. The Github repository contains the SDK binaries for Android, iOS, Raspberry Pi and Windows."