Metadata-Version: 2.1
Name: pponnxcr
Version: 1.2
Summary: OCR based on onnxruntime with PaddleOCR models
Home-page: https://github.com/hgjazhgj/pponnxcr
Author: hgjazhgj
Author-email: hgjazhgj.jp@gmail.com
License: GNU AGPLv3
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Scientific/Engineering :: Image Recognition
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Description-Content-Type: text/markdown
License-File: LICENSE

# pponnxcr - PaddlePaddle Onnxruntime OCR

OCR based on onnxruntime with PaddleOCR models  
Refractor for [ppocr-onnx](https://github.com/triwinds/ppocr-onnx) which implements:  

- Update `rec` model to v3  
- Remove all unnecessary components, including `draw-ocr`  
- Add En and Ja language support  

## Install

```bash
pip install pponnxcr
```

## Usage

```python
from pponnxcr import TextSystem
import cv2

ZH = TextSystem('zh')
JA = TextSystem('ja')
EN = TextSystem('en')

img = cv2.imread('test.png')

ZH.ocr_single_line(img)
ZH.ocr_lines([img, ...])
ZH.detect_and_ocr(img)
```

## License

[GNU AGPLv3](https://www.gnu.org/licenses/agpl-3.0.html)  

Which means that unless commercially licensed, any modification or use of this project in any way requires open source  

## Reference

- [ppocr-onnx](https://github.com/triwinds/ppocr-onnx)  
- [RapidOCR](https://github.com/RapidAI/RapidOCR)  
- [PaddleOCR](https://github.com/PaddlePaddle/PaddleOCR)  


