Skip to content

Implmentation of an card number scaning algorithm using ctpn for detection and crnn for recognition

License

Notifications You must be signed in to change notification settings

MotamedNia/card-scaning-ctpn-crnn

Repository files navigation

card-scaning-ctpn-crnn

Implmentation of an card number scaning algorithm using ctpn for detection and crnn for recognition

This project try to read a card image and write card information in a csv file

This project based on tensorflow ctpn implementation and pytorch crnn implementation

Requirements

  • python 3.5
  • tensorflow
  • pytorch
  • opencv
  • numpy
  • pytesseract
  • imutils

Run

checkout the project

git clone --recurse-submodules https://github.com/MotamedNia/card-scaning-ctpn-crnn.git

install tesseract-ocr

sudo apt-get install tesseract-ocr

install requirements. It's better to create a virtual environment before install requirements

pip install -r requirements.txt

install pytorch

pip install https://download.pytorch.org/whl/cpu/torch-1.0.1.post2-cp35-cp35m-linux_x86_64.whl

follow described instructions for ctpn and crnn

then run

 python detector.py -i <IMAGE_PATH> 

About

Implmentation of an card number scaning algorithm using ctpn for detection and crnn for recognition

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages