Fast and robust MRZ extraction, parsing, and validation using PaddleOCR
Project description
OmniMRZ
OmniMRZ is a fast, production-ready Python library for extracting, parsing, and validating Machine Readable Zones (MRZ) from passports and ID documents using PaddleOCR.
Features
- MRZ detection and extraction from images
- Supports TD3 (passport) format
- Checksum validation (ICAO 9303)
- Logical and structural validation
- Clean Python API
Installation
pip install omnimrz
Note: PaddleOCR requires additional system dependencies. Please ensure PaddlePaddle installs correctly on your platform.
pip install paddleocr
pip install paddle paddle
or if that fails then run
python -m pip install paddlepaddle==3.0.0 -i https://www.paddlepaddle.org.cn/packages/stable/cpu/
Quick Usage
from omnimrz import OmniMRZ
omni = OmniMRZ()
result = omni.process("ukpassport.jpg")
print(result)
Output Example
{
"status": "PARSED",
"data": {
"document_type": "P",
"issuing_country": "USA",
"surname": "DOE",
"given_names": "JOHN",
"document_number": "123456789",
"nationality": "USA",
"date_of_birth": "1990-01-01",
"gender": "M",
"expiry_date": "2030-01-01"
}
}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file omnimrz-0.1.0.tar.gz.
File metadata
- Download URL: omnimrz-0.1.0.tar.gz
- Upload date:
- Size: 30.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
21ec530b69eaea17d33d511f1f4c8c70cf8f2f9aec07d83d0f3f45e84ce10355
|
|
| MD5 |
5633335e4012c15ea5c5950d457b5810
|
|
| BLAKE2b-256 |
e2a703884e813e3a9fac4fc99e043297c70e5780565f549a74432c2a632c2b4d
|
File details
Details for the file omnimrz-0.1.0-py3-none-any.whl.
File metadata
- Download URL: omnimrz-0.1.0-py3-none-any.whl
- Upload date:
- Size: 38.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7132b775e696fe0faf081af7118441d661ee592f98caf442c1a5f94bbddda9b
|
|
| MD5 |
1cf401ebd95bdd4a8f9c13352226f44b
|
|
| BLAKE2b-256 |
d7e033fa4716b1f80bd5782367f1527f12677088496f0b2e9a4cb50bc2502458
|