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
Metadata
Release files for pponnxcr 2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pponnxcr-2.1.tar.gz | 44.2 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pponnxcr-2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 88.5 MB
Release files / pponnxcr-2.1.tar.gz
| Download URL | pponnxcr-2.1.tar.gz |
|---|---|
| Size | 44.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ce807a107b436ded6ad61a4c3adac670e8d03fb588a611e135a85dcf460fe3ac
|
|
BLAKE2b-256 checksum How to use checksums |
2f1cbaad1d9351dc0e17bd99165991ca0fb466b74350ec58c036c3111ea21c5a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Release files / pponnxcr-2.1-py3-none-any.whl
| Download URL | pponnxcr-2.1-py3-none-any.whl |
|---|---|
| Size | 44.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
79ea56ee4efa20a537d17e245819c7e3bc2cfbab37ed789ad2eb4f87a8470f3b
|
|
BLAKE2b-256 checksum How to use checksums |
7a96ec4da962a360d3af0b01801636bf4240d69629b023b2d217682b2bb39f4f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|