Skip to content
A program to align rotated id cards and extract user data from it.
Python Cuda Other
Branch: master
Clone or download
Latest commit b1806de Jul 2, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ctpn First commit Jun 4, 2019
data add sample card Jun 4, 2019
data_harr commit haarcascade files Jun 4, 2019
input_cards add sample card Jun 4, 2019
lib First commit Jun 4, 2019
outputs add sample card Jun 4, 2019
README.md Update README.md Jul 1, 2019
demo.gif gif demo Jun 30, 2019
eye_detector.py add sample card Jun 4, 2019
face_tracker.py remove redundent import Jun 4, 2019
information_exteract.py
main.py add input directory Jun 4, 2019
rotate_crop_with_HoughLines.py chenge theresh height Jun 30, 2019

README.md

Align Iranian National ID Card

A program to align rotated id cards and extract user data from it.

Motivation of the Project

While working on a user authentication project for the National ID Card Organization, some of collected sample images could not be processed due to irregularity in size and scale. To overcome the problem, images were manually corrected using CamScanner. They were then cut off to be in the proper form. Repeating this process over and over is clearly a tedious task, so a simple program was written to automate it.

Prerequisites

Python 3+
Opencv 3.4.+
Numpy
Scikit-Image
Tensorflow

Running

git clone https://github.com/ElmiiiRaa/align_iranian_national_id_card.git
cd align_iran_national_id_card
python main.py

A sample card already exists in the input_cards directory. Simply replace it with your own input files. It's recommended to use no more than 2 or 3 files in each run.

Projects we borrowed from

Author

  • Elmira Ghorbani

See the blog post for more information.

License

MIT ©2019

You can’t perform that action at this time.