Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

kmustriver/chinese-ocr

Repository files navigation

本文基于tensorflow、keras/pytorch实现对自然场景的文字检测及端到端的OCR中文文字识别

环境部署

运行 sh setup.sh

模型训练

训练keras版本的crnn

cd train & sh train-keras.sh

训练pytorch版本的crnn

cd train & sh train-pytorch.sh

文字检测

文本检测参考(https://github.com/eragonruan/text-detection-ctpn)

在原作者的代码基础上修改编译代码,新增支持CPU模式下的文字检测,详见:https://github.com/chineseocr/new-text-detection-ctpn.git

OCR 端到端识别:GRU+CTC

ocr识别采用GRU+CTC端到到识别技术,实现不分隔识别不定长文字

提供keras 与pytorch版本的训练代码,在理解keras的基础上,可以切换到pytorch版本,此版本更稳定

识别结果展示

文字检测及OCR识别结果

倾斜文字

## 参考

1.crnn https://github.com/meijieru/crnn.pytorch.git

2.keras crnn 版本实现 https://www.zhihu.com/question/59645822

3.ctpn https://github.com/eragonruan/text-detection-ctpn , https://github.com/tianzhi0549/CTPN

About

运用keras,tensorflow实现自然场景文字检测,ctc 实现不定长中文OCR识别

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

Languages

  • Python 67.4%
  • Jupyter Notebook 29.9%
  • C 1.7%
  • Cuda 0.9%
  • Shell 0.1%
  • C++ 0.0%

AltStyle によって変換されたページ (->オリジナル) /