/DeepOcrService

Simple OCR service using deep learning

Primary LanguagePythonMIT LicenseMIT

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 server

python3 app.py

Visit http://localhost:5000