Need help with OCR-DETECTION-CTPN?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

208 Stars 72 Forks 105 Commits 4 Opened issues


OCR, CNN+LSTM (CTPN) for image text detection, tensorflow

Services available


Need anything else?

Contributors list

# 281,624
103 commits
# 682,311
1 commit


CNN+LSTM (CTPN) for image text detection

example results



To run this repo:

1, python       # to normalize the pre-normalized background images

2, python 0       # to generate validation data

3, python 1       # to generate training data

4, python       # to train and validate

By 1, the pre-normalized images will firstly be rescaled if not of size 800x600, then 800x600 rects will be cropped from the rescaled images. The 800x600 images will be stored in a newly-maked directory, ./images_base.

By 2 and 3, validation data and training data will be generated. These will be store in the newly-maked directories, ./datavalid and ./datatrain, respectively.

By 4, the model will be trained and validated. The validation results will be stored in ./datavalid/results. The ckpt files will be stored in a newly-maked directory, ./modeldetect.

detection model

The model is mainly based on the method described in the article:

Detecting Text in Natural Image with Connectionist Text Proposal Network

Zhi Tian, Weilin Huang, Tong He, Pan He, Yu Qiao

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.