Read biometric passport data via NFC using Python 3.
- Download this code / clone this repo.
- Install the requirements with
pip3 install -U setuptools PyCryptodome pyasn1 pyscard Pillow
- Edit
scan.py
and add your passport's number, your date of birth, and your document's expiry date. - Plug in your NFC reader.
- Place your passport on the NFC reader.
- Run
python scan.py
- You will see some debug data.
- The code will save a JPG of the photo, metadata about the photo, and data from the Machine Readable Zone.