OCR based on onnxruntime with PaddleOCR models
Project description
pponnxcr - PaddlePaddle ONNXruntime OCR
OCR based on ONNX Runtime with PaddleOCR models
Refractor by @hgjazhgj for ppocr-onnx and implements:
- Update
recmodel to v3 - Remove all unnecessary components e.g.
draw-ocr - Add English, Japanese and TraditionalChinese language support
Install
pip install pponnxcr
Usage
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
Which means that unless commercially licensed, any modification or use of this project in any way requires open source
Reference
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pponnxcr-2.1.tar.gz
(44.2 MB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
pponnxcr-2.1-py3-none-any.whl
(44.2 MB
view details)
File details
Details for the file pponnxcr-2.1.tar.gz.
File metadata
- Download URL: pponnxcr-2.1.tar.gz
- Upload date:
- Size: 44.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce807a107b436ded6ad61a4c3adac670e8d03fb588a611e135a85dcf460fe3ac
|
|
| MD5 |
feb83f2a60884f1a096f212d3d984e55
|
|
| BLAKE2b-256 |
2f1cbaad1d9351dc0e17bd99165991ca0fb466b74350ec58c036c3111ea21c5a
|
File details
Details for the file pponnxcr-2.1-py3-none-any.whl.
File metadata
- Download URL: pponnxcr-2.1-py3-none-any.whl
- Upload date:
- Size: 44.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79ea56ee4efa20a537d17e245819c7e3bc2cfbab37ed789ad2eb4f87a8470f3b
|
|
| MD5 |
0586c4f3c3ffc92b539009c63b5831c0
|
|
| BLAKE2b-256 |
7a96ec4da962a360d3af0b01801636bf4240d69629b023b2d217682b2bb39f4f
|