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


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.0.tar.gz (44.2 MB view details)

Uploaded Source

Built Distribution

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

pponnxcr-2.0-py3-none-any.whl (44.2 MB view details)

Uploaded Python 3

File details

Details for the file pponnxcr-2.0.tar.gz.

File metadata

  • Download URL: pponnxcr-2.0.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

Hashes for pponnxcr-2.0.tar.gz
Algorithm Hash digest
SHA256 17e13b8961c2d6e204b1bfb90e039a08ee70a43b62b11679d9a930774d7dce05
MD5 0a81d5c68e13954eeb34cebb4cd97c4c
BLAKE2b-256 a05b9bad76f558aa493ac4f93ef104fd2354029965ab080ab0577d6a9a963b3a

See more details on using hashes here.

File details

Details for the file pponnxcr-2.0-py3-none-any.whl.

File metadata

  • Download URL: pponnxcr-2.0-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

Hashes for pponnxcr-2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4b2bf4eec1e593ffcfc83844f5213f783907f1485d9fa1f4ad67cf67b2c61ca4
MD5 398c4d69d98f4b7a8ef17322b01de8f8
BLAKE2b-256 7b309646fdb1386a2b764dc57201933e48cbf3c1e097df63da9173da73de4164

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