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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distributions
tr-2.6.7-py3-none-win_amd64.whl
(58.3 MB
view hashes)
Close
Hashes for tr-2.6.7-py3-none-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c5fd34aba3c84f9c7f82c6242adff0892221c2d4a0da994ac99e4c7084a94ac |
|
MD5 | da641bd45c493c78fd441379825df1a0 |
|
BLAKE2b-256 | c36e97eb54e90618e328f21245fccfa07fb20c6b5eb5daa0588c3d6d91bafb44 |