Skip to content

zergmk2/DeepOcrService

 
 

Repository files navigation

DeepOcrService

Todo:

  • English crnn model

Requirements

  • Ubuntu 16.04
  • Tensorflow-gpu >= 1.6

How to use

Get code:

git clone --recursive git@github.com:Sanster/DeepOcrService.git

Install dependencies:

pip3 install -r requirements.txt

Download models:

  • Download ctpn_vgg16.pb and crnn_raw.pb from sanster/models , save to data/models.
  • Rename ctpn_vgg16.pb as ctpn.pb, rename crnn_raw.pb as crnn.pb.

Build Cpython code:

cd tf_ctpn/lib && make

Start web app

python3 app.py

Visit http://localhost:5000

Do infer on commond line

python3 infer.py \
--img_dir= \
--viz

Press ESC to exit. Press Space to continue.

About

Simple OCR service using deep learning

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 53.7%
  • JavaScript 38.0%
  • HTML 7.5%
  • CSS 0.8%