Skip to main content

OCR based on onnxruntime with PaddleOCR models

Project description

pponnxcr - PaddlePaddle Onnxruntime OCR

OCR based on onnxruntime with PaddleOCR models
Refractor for ppocr-onnx which implements:

  • Update rec model to v3
  • Remove all unnecessary components, including draw-ocr
  • Add En and Ja language support

Install

pip install pponnxcr

Usage

from pponnxcr import TextSystem
import cv2

ZH = TextSystem('zh')
JA = TextSystem('ja')
EN = TextSystem('en')

img = cv2.imread('test.png')

ZH.ocr_single_line(img)
ZH.ocr_lines([img, ...])
ZH.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-1.1.tar.gz (34.1 MB view details)

Uploaded Source

Built Distribution

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

pponnxcr-1.1-py3-none-any.whl (34.1 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pponnxcr-1.1.tar.gz
  • Upload date:
  • Size: 34.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for pponnxcr-1.1.tar.gz
Algorithm Hash digest
SHA256 c1349ae56c3b679bf92f14fe085c47e254faad473f36e0756fa3edeb02735322
MD5 99f6ee99544bc921e70eceba329c82fe
BLAKE2b-256 98d1db0a5fbb5e658aaa1f802f79c1399057fae2fa4104ec8e92ec1eb7de78ae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pponnxcr-1.1-py3-none-any.whl
  • Upload date:
  • Size: 34.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for pponnxcr-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4315bc2567a48e66c2a1f6910ae928212b236befa85034fd55775f53e76972d6
MD5 8e7b96f3b214d0c6608356dba3428adf
BLAKE2b-256 59833f916e9840af5c18d079b6c1db45b62281e2a800a8bb71c1cdcf415bbe6b

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