Skip to main content

这是 https://github.com/jingsongliujing/OnnxOCR 的fork

  • 发布了到PIP上
  • 仅依赖无版本限制的 pyclipper, shapely, pillow
  • 仅打包了"models/ppocrv5/det/det.onnx" "models/ppocrv5/rec/rec.onnx"
pip install onnxocr-ppocrv5
model = ONNXPaddleOcr(use_angle_cls=False)

测试

pip install -r requirements-dev.txt
pytest
pytest -m "integration and not npu"
pytest -m "integration and npu"

默认的 pytest 命令只运行快速单元测试。集成测试会加载 OCR 模型和推理后端, 其中 npu 标记用于显式验证 OpenVINO NPU 路径。

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

onnxocr_ppocrv5-0.0.19.tar.gz (19.2 MB view details)

Uploaded Source

Built Distribution

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

onnxocr_ppocrv5-0.0.19-py3-none-any.whl (19.2 MB view details)

Uploaded Python 3

File details

Details for the file onnxocr_ppocrv5-0.0.19.tar.gz.

File metadata

  • Download URL: onnxocr_ppocrv5-0.0.19.tar.gz
  • Upload date:
  • Size: 19.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for onnxocr_ppocrv5-0.0.19.tar.gz
Algorithm Hash digest
SHA256 9575c2c7a87bbadf30e05cd0d469967bab59fbc66d35f2287f3e44362dbf0980
MD5 1c2d05a03a94fb11e1cb46c62fac1b45
BLAKE2b-256 e1c30c84404aa5f5cd7a9822f25c196e77f9dbcb137c391ebc121edc2cf9783b

See more details on using hashes here.

File details

Details for the file onnxocr_ppocrv5-0.0.19-py3-none-any.whl.

File metadata

File hashes

Hashes for onnxocr_ppocrv5-0.0.19-py3-none-any.whl
Algorithm Hash digest
SHA256 8b268edaba96bb0ff94ab1d1b73155febacdb4599665b2905a27af19e676607a
MD5 79588a947d8fbc19a0cd276c7c81fa41
BLAKE2b-256 ac68628975f3f11160c19a60c6dcea7dc0481946ee27c503de7c7b0867ec093d

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