tr
Project description
tr - Text Recognition
开发中,暂时只完成单行文本识别
一款针对扫描文档的离线文本识别SDK,核心代码全部采用C++开发,并提供Python接口
编译环境: Centos 7
更新说明
- 优化文本行识别
- 不再支持python2, 不再支持ubuntu16系统
Requirements
- python3,需要安装numpy
- 不支持Windows、CentOS 6、Ubuntu16、ARM
Install
git clone -b v2.5.1 --single-branch http://github.com/myhub/tr.git cd ./tr sudo python setup.py install
Test
python3 test_crnn.py # 文本行识别
Python Example
import tr crnn = tr.CRNN() # 初始化文本行识别网络 chars, scores = crnn.run("imgs/line.png") # 识别文本行 print("".join(chars)) # 打印结果
关联项目
- 若需要Web端调用,推荐参考TrWebOCR
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tr-2.5.1.1.tar.gz
(52.8 MB
view hashes)