Todo:
- English crnn model
- Ubuntu 16.04
- Tensorflow-gpu >= 1.6
Get code:
git clone --recursive [email protected]:Sanster/DeepOcrService.git
Install dependencies:
pip3 install -r requirements.txt
Download models:
- Download
ctpn_vgg16.pb
andcrnn_raw.pb
from sanster/models , save todata/models
. - Rename
ctpn_vgg16.pb
asctpn.pb
, renamecrnn_raw.pb
ascrnn.pb
.
Build Cpython code:
cd tf_ctpn/lib && make
python3 app.py
Visit http://localhost:5000
python3 infer.py \
--img_dir= \
--viz
Press ESC
to exit. Press Space
to continue.