# pponnxcr - PaddlePaddle ONNXruntime OCR
OCR based on ONNX Runtime with PaddleOCR models
Refractor by [@hgjazhgj](https://github.com/hgjazhgj/) for [ppocr-onnx](https://github.com/triwinds/ppocr-onnx) and implements:
- Update `rec` model to v3
- Remove all unnecessary components e.g. `draw-ocr`
- Add English, Japanese and TraditionalChinese language support
## Install
```bash
pip install pponnxcr
```
## Usage
```python
from pponnxcr import TextSystem
import cv2
ZHS = TextSystem('zhs')
ZHT = TextSystem('zht')
JA = TextSystem('ja')
EN = TextSystem('en')
img = cv2.imread('test.png')
ZHS.ocr_single_line(img)
ZHS.ocr_lines([img, ...])
ZHS.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)
- [Paddle2ONNX](https://github.com/PaddlePaddle/Paddle2ONNX)
Raw data
{
"_id": null,
"home_page": "https://github.com/hgjazhgj/pponnxcr",
"name": "pponnxcr",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "hgjazhgj",
"author_email": "hgjazhgj.jp@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/2f/1c/baad1d9351dc0e17bd99165991ca0fb466b74350ec58c036c3111ea21c5a/pponnxcr-2.1.tar.gz",
"platform": null,
"description": "# pponnxcr - PaddlePaddle ONNXruntime OCR\n\nOCR based on ONNX Runtime with PaddleOCR models \nRefractor by [@hgjazhgj](https://github.com/hgjazhgj/) for [ppocr-onnx](https://github.com/triwinds/ppocr-onnx) and implements: \n\n- Update `rec` model to v3 \n- Remove all unnecessary components e.g. `draw-ocr` \n- Add English, Japanese and TraditionalChinese language support \n\n## Install\n\n```bash\npip install pponnxcr\n```\n\n## Usage\n\n```python\nfrom pponnxcr import TextSystem\nimport cv2\n\nZHS = TextSystem('zhs')\nZHT = TextSystem('zht')\nJA = TextSystem('ja')\nEN = TextSystem('en')\n\nimg = cv2.imread('test.png')\n\nZHS.ocr_single_line(img)\nZHS.ocr_lines([img, ...])\nZHS.detect_and_ocr(img)\n```\n\n## License\n\n[GNU AGPLv3](https://www.gnu.org/licenses/agpl-3.0.html) \n\nWhich means that unless commercially licensed, any modification or use of this project in any way requires open source \n\n## Reference\n\n- [ppocr-onnx](https://github.com/triwinds/ppocr-onnx) \n- [RapidOCR](https://github.com/RapidAI/RapidOCR) \n- [PaddleOCR](https://github.com/PaddlePaddle/PaddleOCR) \n- [Paddle2ONNX](https://github.com/PaddlePaddle/Paddle2ONNX)\n\n\n",
"bugtrack_url": null,
"license": "GNU AGPLv3",
"summary": "OCR based on onnxruntime with PaddleOCR models",
"version": "2.1",
"project_urls": {
"Homepage": "https://github.com/hgjazhgj/pponnxcr"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "7a96ec4da962a360d3af0b01801636bf4240d69629b023b2d217682b2bb39f4f",
"md5": "0586c4f3c3ffc92b539009c63b5831c0",
"sha256": "79ea56ee4efa20a537d17e245819c7e3bc2cfbab37ed789ad2eb4f87a8470f3b"
},
"downloads": -1,
"filename": "pponnxcr-2.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "0586c4f3c3ffc92b539009c63b5831c0",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 44229944,
"upload_time": "2023-12-28T23:09:49",
"upload_time_iso_8601": "2023-12-28T23:09:49.910280Z",
"url": "https://files.pythonhosted.org/packages/7a/96/ec4da962a360d3af0b01801636bf4240d69629b023b2d217682b2bb39f4f/pponnxcr-2.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "2f1cbaad1d9351dc0e17bd99165991ca0fb466b74350ec58c036c3111ea21c5a",
"md5": "feb83f2a60884f1a096f212d3d984e55",
"sha256": "ce807a107b436ded6ad61a4c3adac670e8d03fb588a611e135a85dcf460fe3ac"
},
"downloads": -1,
"filename": "pponnxcr-2.1.tar.gz",
"has_sig": false,
"md5_digest": "feb83f2a60884f1a096f212d3d984e55",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 44234550,
"upload_time": "2023-12-28T23:09:54",
"upload_time_iso_8601": "2023-12-28T23:09:54.743562Z",
"url": "https://files.pythonhosted.org/packages/2f/1c/baad1d9351dc0e17bd99165991ca0fb466b74350ec58c036c3111ea21c5a/pponnxcr-2.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-12-28 23:09:54",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "hgjazhgj",
"github_project": "pponnxcr",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [],
"lcname": "pponnxcr"
}