Home

Awesome

text-detection-ctpn

text detection mainly based on ctpn (connectionist text proposal network). It is implemented in tensorflow. I use id card detect as an example to demonstrate the results, but it should be noticing that this model can be used in almost every horizontal scene text detection task. The origin paper can be found here. Also, the origin repo in caffe can be found in here. For more detail about the paper and code, see this blog. If you got any questions, check the issue first, if the problem persists, open a new issue.


roadmap


demo

python ./ctpn/demo_pb.py

parameters

there are some parameters you may need to modify according to your requirement, you can find them in ctpn/text.yml


training

setup

cd lib/utils
chmod +x make.sh
./make.sh

prepare data

cd lib/prepare_training_data
python split_label.py
python ToVoc.py
cd ../../data
ln -s TEXTVOC VOCdevkit2007

train

Simplely run

python ./ctpn/train_net.py

some results

NOTICE: all the photos used below are collected from the internet. If it affects you, please contact me to delete them. <img src="/data/results/006.jpg" width=320 height=480 /><img src="/data/results/008.jpg" width=320 height=480 /> <img src="/data/results/009.jpg" width=320 height=480 /><img src="/data/results/010.png" width=320 height=320 />


oriented text connector