{"repo":"sivakumar-mahalingam/fastmrz","free":true,"listed":false,"github":"https://github.com/sivakumar-mahalingam/fastmrz","clone":"git clone https://github.com/sivakumar-mahalingam/fastmrz.git","description":"⚡Extracting the Machine Readable Zone (MRZ) from passport or any document images","language":"Python","stars":190,"topics":["mrz","mrz-scanner","ocr","passport","passport-mrz","python","tesseract","tesseract-ocr","identity-document","opencv"],"license":"AGPL-3.0","category":"media-processing","readme_excerpt":"Fast MRZ FastMRZ is an open-source Python package that extracts the Machine Readable Zone (MRZ) from passports and other documents. FastMRZ accepts various input formats such as Image, Base64 string, MRZ string, or NumPy array. Features • Built With • Prerequisites • Installation • Example • Wiki • ToDo • Contributing ️✨Features - 👁️Detects and extracts the MRZ region from document images - ️🔍Contour detection to accurately identify the MRZ area - 🎨Custom trained models using ONNX - 🆗Contains checksum logics for data validation - 📤Outputs the extracted MRZ region as text/json 🛠️Built With 🚨Prerequisites - Install Tesseract OCR engine. And set PATH variable with the executable and ensure that tesseract can be reached from the command line. ⚙️Installation 1. Install fastmrz This can be done through conda too if you prefer. 2. Copy the mrz.traineddata file from the tessdata folder of the repository into the tessdata folder of the Tesseract installation on YOUR MACHINE 💡Example OUTPUT: 📃Wiki MRZ Types & Format The standard for MRZ code is strictly regulated and has to comply with Doc 9303. Machine Readable Travel Documents published by the International Civil Aviation Organization. There are currently several types of ICAO standard machine-readable zones, which vary in the number of lines and characters in each line: - TD-1 (e.g. citizen’s identification card, EU ID card, US Green Card): consists of 3 lines, 30 characters each. - TD-2 (e.g. Romania ID, old type of German","default_branch":null,"files":null,"tree":[],"storefront":"/r/sivakumar-mahalingam","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/sivakumar-mahalingam/fastmrz/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}