tr
Project description
tr - Text Recognition
开发中,暂时只完成单行文本识别
一款针对扫描文档的离线文本识别SDK,核心代码全部采用C++开发,并提供Python接口
编译环境: ubuntu18.04
Requirements
- python3,需要安装numpy
- 不支持Windows、CentOS 6、Ubuntu16、ARM
Install
pip install tr==2.6.1 -i https://pypi.tuna.tsinghua.edu.cn/simple
Test
python3 test_crnn_simple.py # 文本行识别 python3 test_crnn_pyqt5.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.6.5.tar.gz
(61.9 MB
view hashes)