这是 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 路径。
Release files for onnxocr-ppocrv5 0.0.20
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| onnxocr_ppocrv5-0.0.20.tar.gz | 19.2 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| onnxocr_ppocrv5-0.0.20-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 38.3 MB
Release files / onnxocr_ppocrv5-0.0.20.tar.gz
| Download URL | onnxocr_ppocrv5-0.0.20.tar.gz |
|---|---|
| Size | 19.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8e66895702d7eb6924d1c75c8e148e8e61a734be16c8cec7b09db7344558edd0
|
|
BLAKE2b-256 checksum How to use checksums |
a5168de3bfdc9e6bd3d37b216203a4d5813ae162ad40c3dd3ca2f7e20217fe34
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.10
|
Release files / onnxocr_ppocrv5-0.0.20-py3-none-any.whl
| Download URL | onnxocr_ppocrv5-0.0.20-py3-none-any.whl |
|---|---|
| Size | 19.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eaa728d3a19c648bba201c92227d87f2f59f4e32d615ba06e7f6873263ab267a
|
|
BLAKE2b-256 checksum How to use checksums |
7118df6ef9b68877f08afb48c80c1e30f9b310093327a94109ce9b4fbf680976
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.10
|