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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pponnxocr-0.1.tar.gz
(19.1 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
pponnxocr-0.1-py3-none-any.whl
(19.2 MB
view details)
File details
Details for the file pponnxocr-0.1.tar.gz.
File metadata
- Download URL: pponnxocr-0.1.tar.gz
- Upload date:
- Size: 19.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed04aea6e4a3f7f95e27f0af6604bc04618331750a13188d19f4934a781a9098
|
|
| MD5 |
bbce88722ded42006d230a6016c89af9
|
|
| BLAKE2b-256 |
ebbe5e5b629869490dcfae4508e9a9d6d2afb80c3d387d13458fafa3a39ef366
|
File details
Details for the file pponnxocr-0.1-py3-none-any.whl.
File metadata
- Download URL: pponnxocr-0.1-py3-none-any.whl
- Upload date:
- Size: 19.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
620d7b9edb53d3a9d588288243f999b481ec59b7559cdbe3188311edfe25dfa5
|
|
| MD5 |
f5f2c46145130f6301c77867f6985d39
|
|
| BLAKE2b-256 |
963ea5e953edaa4835e73ed912310c5d36cdf42297344fd8860922aee7e07fad
|