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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pponnxcr-1.0.tar.gz
Algorithm Hash digest
SHA256 fa0e751ef769785c000e5803246e784e15bd4c8225e8f812b41a51a921c16bc6
MD5 d7ce814af3c7871f0a0bf79ab3d9fc5a
BLAKE2b-256 ec1cb53fc780ef783a032cc5a98f6680417f26b6e7122b31a7a4b5b35d30de6d

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pponnxcr-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3dc07edaf2d5939bed302d223bf7f59832664ed1a961b3047096c2bf95e62f20
MD5 2c12e3dcca26304a6709039cdd341b51
BLAKE2b-256 d3fe5e8671bbc1d0daf692a2518046eb54ea3bb1f9927d3205ba673e78cc32e1

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