A very simple python backend API with flask to extract text informations from a passport image file.
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.
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": "Kenya",
"country_code": "KEN",
"first_name": "Dancan",
"last_name": "Sikuku",
"nationality": "Kenya",
"number": "X00X00000",
"sex": "M"
}