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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pponnxcr-1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 48b8ddf719ab1bdca12ad151bf33b5717746ece3090603c8be70bb9cfb3e8225
MD5 1f0d6f2e5679349c59c013c6fbbd2b19
BLAKE2b-256 e008f81579f2fdfa1d71cce4fbbc8cc6a5703cea03b8f3b2862a5b7826cd7604

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pponnxcr-1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 981a8d92d2e7a286919e792c63c90fbdfc5ac257d81f40514342030e32755f26
MD5 02f40670f87fd4b9bc28ba2ea84fce68
BLAKE2b-256 e6e5bc3221821203c7265b5653732021871fc2e9311ff73c34f7876038408667

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