Skip to main content

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 rec model 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

GNU AGPLv3

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

This version

0.1

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pponnxocr-0.1-py3-none-any.whl (19.2 MB view details)

Uploaded Python 3

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

Hashes for pponnxocr-0.1.tar.gz
Algorithm Hash digest
SHA256 ed04aea6e4a3f7f95e27f0af6604bc04618331750a13188d19f4934a781a9098
MD5 bbce88722ded42006d230a6016c89af9
BLAKE2b-256 ebbe5e5b629869490dcfae4508e9a9d6d2afb80c3d387d13458fafa3a39ef366

See more details on using hashes here.

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

Hashes for pponnxocr-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 620d7b9edb53d3a9d588288243f999b481ec59b7559cdbe3188311edfe25dfa5
MD5 f5f2c46145130f6301c77867f6985d39
BLAKE2b-256 963ea5e953edaa4835e73ed912310c5d36cdf42297344fd8860922aee7e07fad

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page