/text-detection-ctpn

text detection mainly based on ctpn model in tensorflow, id card detect, connectionist text proposal network

Primary LanguagePythonMIT LicenseMIT

text-detection-ctpn

Text detection mainly based on ctpn (connectionist text proposal network). The original paper can be found here. The original repo in caffe can be found in here. For more detail about the paper and code, see this blog. The original repo in tensorflow can be found in here.

This repo contains modifications necessary to run text-detection-ctpn on Windows. My god, show some love for windows users. We are a minority deprived of any attention or care...


setup

  • requirements: tensorflow, cython, opencv-python, easydict
  • build the library by
cd lib/utils
make.bat

demo

  • download the checkpoints from release, unzip it in checkpoints/
  • put your images in data/demo, the results will be saved in data/results, and run demo in the root
python ./ctpn/demo.py

some results