Metadata-Version: 2.1
Name: tr
Version: 2.8.2
Summary: tr
Home-page: https://pypi.org/project/tr/
Author: anycode
Author-email: anycode@yahoo.com
Maintainer: anycode
Maintainer-email: anycode@yahoo.com
Platform: linux
Classifier: Programming Language :: Python
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries
Description-Content-Type: text/markdown

# tr - Text Recognition 

## 开发中，暂时只完成单行文本识别

一款针对扫描文档的离线文本识别SDK，核心代码全部采用C++开发，并提供Python接口

编译环境: *ubuntu18.04*

#### Requirements
+ python3，需要安装numpy
+ 不支持Windows、CentOS 6、Ubuntu16、ARM

#### Install
<pre>pip install tr==2.8.1 -i https://pypi.tuna.tsinghua.edu.cn/simple
</pre>

#### Test
<pre>
python3 test_crnn_simple.py     # 文本行识别  
python3 test_crnn_pyqt5.py      # 截图识别  
</pre>

#### Python Example
<pre>import tr
crnn = tr.CRNN()                                # 初始化文本行识别网络
chars, scores = crnn.run("imgs/line.png")       # 识别文本行
print("".join(chars))                           # 打印结果
</pre>


#### 关联项目
+ 若需要Web端调用，推荐参考<a href="https://github.com/alisen39/TrWebOCR">TrWebOCR</a>

