Default PP-OCRv5 ONNX model weights for the ocrspine PaddleOCR engine (shared data companion for pdfspine / pptspine / docspine).
Project description
ocrspine-models
The default PP-OCRv5 ONNX model weights for ocrspine's
pure-Rust PaddleOCR engine — the shared data companion for the spine document
family (pdfspine / pptspine / docspine).
This is a pure-data distribution. The host wheels already contain the OCR
code (compiled in) but ship no models; this one package supplies the ~28 MB
of weights, so the family keeps exactly one git-tracked copy of the models (in the
ocrspine repo) and one published copy of the data wheel.
You normally do not install it directly — it is a hard dependency of the hosts, so
pip install pdfspine (or pptspine / docspine) pulls it in automatically. The
host then resolves the models at runtime by reading
ocrspine_models.models_dir() and exporting it as the engine's OCRSPINE_MODELS
environment variable. Everything is offline — no model download at runtime.
import ocrspine_models
print(ocrspine_models.models_dir()) # dir holding the 3 ONNX files
print(ocrspine_models.det_path()) # .../ppocrv5_det.onnx
print(ocrspine_models.rec_path()) # .../ppocrv5_rec.onnx
print(ocrspine_models.cls_path()) # .../ppocrv5_cls.onnx
print(ocrspine_models.keys_path()) # .../ppocr_keys_v5.txt
What ships here
| file | what |
|---|---|
ppocrv5_det.onnx |
PP-OCRv5 text detection (DBNet) |
ppocrv5_rec.onnx |
PP-OCRv5 text recognition (CRNN + CTC), zh/en/ja |
ppocrv5_cls.onnx |
PP-LCNet text-line orientation classifier (180°) |
ppocr_keys_v5.txt |
recognition character dictionary (carried for self-containment) |
Only the default zh/en/ja model set ships here. Language-evaluation artifacts that
live in the ocrspine repo (e.g. the Thai recognition model) are out of scope.
License
Apache-2.0. The redistributed PP-OCR model weights are Copyright (c) PaddlePaddle
Authors (Apache-2.0), converted to ONNX via Paddle2ONNX. See
ocrspine_models/NOTICE and
ocrspine_models/PROVENANCE.md.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ocrspine_models-0.0.1.tar.gz.
File metadata
- Download URL: ocrspine_models-0.0.1.tar.gz
- Upload date:
- Size: 25.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d51fe925eab9067b7f4f2b4545e5bc7632c1b986e196b77d37658ed1662bef7b
|
|
| MD5 |
dd8592ff0dc99b81698f9c810a5cea73
|
|
| BLAKE2b-256 |
5d53f7f419ba1a898e9a56ae602ae6d2b9a78d229f1131cc4b60261fa40ec790
|
File details
Details for the file ocrspine_models-0.0.1-py3-none-any.whl.
File metadata
- Download URL: ocrspine_models-0.0.1-py3-none-any.whl
- Upload date:
- Size: 25.0 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b28be4815191baa31e07da33af2542c1dcc7e36bbe1fa9cb9f3e8b25bd0a72cd
|
|
| MD5 |
fd88a6d92a740447239e888b4436a9e4
|
|
| BLAKE2b-256 |
4a8f104948ded074d1abd90b2e0ae8b70918f10f5631c6cdeacab483880bf80b
|