Extract and decode machine readable zone (MRZ) data from travel documents and identity cards with AI-powered OCR technology. Automate passport verification, visa processing, and ID validation with fast, accurate extraction of holder information, document numbers, and expiration dates — even from poor-quality scans and photos.
The machine readable zone (MRZ) is a standardized text area on passports, visas, ID cards, and driver licenses that enables automated data extraction using OCR technology. Encoded with OCR-B font according to ICAO Document 9303, and ISO/IEC 7501-1 standards, MRZ contains mandatory holder information and document details in a machine-readable format for fast identity verification at border control, airports, and security checkpoints.
Extract structured data from MRZ including:
Support for all international MRZ standards:
There are also other specific formats depending on the country. For instance, French and Portuguese ID cards don’t follow these standards.
Machine Readable Travel Documents Part 1: Introduction
Machine Readable Travel Documents Part 2: Specifications for the Security of the Design, Manufacture, and Issuance of MRTDs
Machine Readable Travel Documents Part 3: Specifications Common to all MRTDs
Machine Readable Travel Documents Part 4: Specifications for Machine Readable Passports (MRPs) and other TD3 Size MRTDs
Machine Readable Travel Documents Part 5: Specifications for TD1 Size Machine Readable Official Travel Documents (MROTDs)
Machine Readable Travel Documents Part 6: Specifications for TD2 Size Machine Readable Official Travel Documents (MROTDs)
Machine Readable Travel Documents Part 7: Machine Readable Visas
Machine Readable Travel Documents Part 8: Emergency Travel Documents
MRZ recognition capabilities are included in the GdPicture.NET OCR SDK.
Extract MRZ data from challenging images with AI-powered OCR accuracy. Handles small or distant text, motion blur, partial occlusion, skewed documents, and poor lighting conditions. Processes mobile phone captures and low-quality scans without manual preprocessing — eliminating deskewing and image correction steps.
Supports all international machine readable travel documents (MRTD), including passports, national ID cards, enhanced driver licenses, visas, and resident permits. Extract data from 100+ document types across all countries for KYC/AML compliance, identity verification, hotel check-in automation, and customer onboarding in banking and financial services.
The detector is agnostic and doesn’t decode (recognize/OCR) the text to check it against some predefined rules (regex), which means it supports all MRZ types (Travel Documents 1/2/3, MRVA, MRVB) regardless of the font, content, shape, or country.
Get started
Download and install the GdPicture.NET package to access compiled demo applications and multi-language sample projects with full source code.
\Samples\Bin\.\Samples\WinForm\.The example converts a document with MRZ to a searchable PDF.
using GdPicturePDF gdpicturePDF = new GdPicturePDF();using GdPictureImaging gdpictureImaging = new GdPictureImaging();using GdPictureOCR gdpictureOCR = new GdPictureOCR();// Select the image to process.int imageID = gdpictureImaging.CreateGdPictureImageFromFile(@"C:\temp\source.png");// Set the OCR parameters.gdpictureOCR.SetImage(imageID);gdpictureOCR.ResourceFolder = @"C:\GdPicture.NET 14\Redist\OCR";gdpictureOCR.AddLanguage(OCRLanguage.English);// Run the OCR process.string resID = gdpictureOCR.RunOCR();// Get the result of the OCR process as text.string content = gdpictureOCR.GetOCRResultText(resID);// Save the result in a PDF document.gdpicturePDF.CreateFromText(PdfConformance.PDF, 595, 842, 10, 10, 10, 10, TextAlignment.TextAlignmentNear, content, 12, "Arial", false, false, true, false);gdpicturePDF.SaveToFile(@"C:\temp\output.pdf");gdpictureImaging.ReleaseGdPictureImage(imageID);The machine readable zone (MRZ) is a standardized text area found on passports, visas, ID cards, and other travel documents. It contains encoded information about the document holder in a format that can be quickly read by optical character recognition (OCR) systems, enabling automated identity verification at border controls and security checkpoints.
The SDK supports all international MRZ standards, including TD1 (ID cards, passport cards), TD2 (passports), TD3 (passports), MRV-A (visas), and MRV-B (visas). It also handles country-specific formats that don’t follow standard specifications.
The SDK uses AI-powered OCR technology to extract MRZ data from challenging images. It handles small or distant text, motion blur, partial occlusion, skewed documents, and poor lighting conditions without requiring manual preprocessing or deskewing steps.
The SDK extracts document type, issuing state, document number, holder’s name, date of birth, sex, document expiry date, nationality, and additional optional information encoded in the MRZ.
Yes. The SDK fully complies with ICAO Document 9303 and ISO/IEC 7501-1 standards for machine readable travel documents (MRTDs).
Yes. The SDK processes mobile phone captures and low-quality scans effectively, making it ideal for mobile identity verification, customer onboarding, and field applications.
Common use cases include KYC/AML compliance, identity verification, hotel check-in automation, customer onboarding in banking and financial services, border control, airport security, and visa processing.
Yes. The SDK supports multithreaded processing, enabling high-throughput applications that can process up to 30 IDs, passports, or driver licenses per second.
Yes. GdPicture.NET belongs to the Nutrient product family, and the machine-readable zone technology is shared across Nutrient’s desktop, web, and mobile SDKs, enabling consistent identity document parsing on all platforms.
60-day free trial