Git Product home page Git Product logo

align_iranian_national_id_card's Introduction

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

align_iranian_national_id_card's People

Contributors

elmiraghorbani avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

align_iranian_national_id_card's Issues

TypeError: Fetch argument None has invalid type <class 'NoneType'>

A number of bugs that occurred in the project were fixed :

If you see error : AttributeError: module 'tensorflow' error has no 'ConfigProto'

File "./ctpn/demo_pb.py", line 64
Change tf.ConfigProto to tf.compat.v1.ConfigProto
&
File "./ctpn/demo_pb.py"
Add import tensorflow.compat.v1 as tf after line 10

https://stackoverflow.com/questions/56127592/attributeerror-module-tensorflow-has-no-attribute-configproto

And

About the error that occurred below , please help me fix it :

TypeError: Fetch argument None has invalid type <class 'NoneType'>

http://prntscr.com/10i2jr3

https://stackoverflow.com/questions/39114832/tensorflow-typeerror-fetch-argument-none-has-invalid-type-type-nonetype

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.