A very simple python backend API to extract text informations from a passport image file.
SCANNING IDENTITY DOCUMENTS IS IN MOST CASES RESTRICTED BY LAW. OBSERVE THE APPLICABLE LAWS USING THIS TOOL. THE COPYRIGHT HOLDER IS NOT IN ANY WAY LIABLE FOR UNLAWFUL USAGE OF THIS TOOL. THIS APP ONLY SERVES TO DEMONSTRATE THE BASIC USE OF PassportEye TO SCAN THE MACHINE READABLE ZONES (MRZ) THEN IMPROVE THE RESULT WITH Tesseract OCR.
First of all, make sure you have Docker Engine installed in your system.
Just clone the repo and build the app with docker compose.
docker-compose up --build
This is the only one endpoint of this app and accept one POST
parameter :
imagefile
: An image file of the passport. For mobile app, we can use the camera.
{
"country": "Madagascar",
"country_code": "MDG",
"first_name": "Patrick",
"last_name": "RANDRIA",
"nationality": "Madagascar",
"number": "X00X00000",
"sex": "M"
}
This tool is is available under the The MIT License. Further details see LICENSE file.