A python3 module that extracts the mrz code from a passport and generates a JSON file out of it.
How to run it:
-
Clone or unzip this repository
-
Change directory into that folder
-
Install virtualnenv using
pip3 install virtualenv
and create a new virtual environment usingvirtualenv env
-
Activate env using
source env/bin/activate
-
Install pre-requisites using
pip3 install -r requirements.txt
-
Run the code using
python3 main.py
-
You can use the algorithm on other images by adding the image to the root folder and editing the filename in main.py