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.1.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.1-py3-none-any.whl (44.2 MB view details)

Uploaded Python 3

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

Hashes for pponnxcr-2.1.tar.gz
Algorithm Hash digest
SHA256 ce807a107b436ded6ad61a4c3adac670e8d03fb588a611e135a85dcf460fe3ac
MD5 feb83f2a60884f1a096f212d3d984e55
BLAKE2b-256 2f1cbaad1d9351dc0e17bd99165991ca0fb466b74350ec58c036c3111ea21c5a

See more details on using hashes here.

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

Hashes for pponnxcr-2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 79ea56ee4efa20a537d17e245819c7e3bc2cfbab37ed789ad2eb4f87a8470f3b
MD5 0586c4f3c3ffc92b539009c63b5831c0
BLAKE2b-256 7a96ec4da962a360d3af0b01801636bf4240d69629b023b2d217682b2bb39f4f

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