Skip to main content

glyphive-ocrmodel-ocrb

An opt-in OCR model for glyphive, fine-tuned for OCR-B renderings of the base16c alphabet.

pip install glyphive-ocrmodel-ocrb
glyphive extract -f scan/ --from-images --ocr-engine tesseract-glyphive-ocrb -C out

Installing it registers a tesseract-glyphive-ocrb OCR provider through the glyphive.ocr_providers entry point. If the model file or Tesseract is not present the provider reports itself unavailable and glyphive falls back to a core engine — installing this package never breaks the stock path.

Why

On the held-out training sweep (benchmarks/results/ocr-training-sweep-20260718.json in the core repo) the fine-tuned model reads the base16c channel at 0.000% CER clean and blurred, versus ~4.6% for stock eng. The core document-wide Reed-Solomon + per-line CRC already make the stock path restore correctly, so this model is a robustness upgrade for marginal scans, not a requirement.

The model file (not in source control)

The trained glyphiveocrb.traineddata (~15 MB) is not committed. It is produced by the reproducible VM recipe in the core repo (benchmarks/training/measure_sweep.py / train_ocr_models.py) and added as package data only when a release wheel is built:

# uncomment in pyproject.toml [tool.hatch.build.targets.wheel] once present:
artifacts = ["src/glyphive_ocrmodel_ocrb/glyphiveocrb.traineddata"]

Licensing

  • Base model: a fine-tune of Tesseract tessdata_best/eng (Apache-2.0, redistributable). Exact base used: version 4.00.00alpha:eng:synth20170629 (tessdata_best; trained with Tesseract 5.4.1), SHA-256 8280aed0782fe27257a68ea10fe7ef324ca0f8d85bd2fd145d1c2b560bcb66ba.
  • Training corpus: synthetic — randomly generated base16c-alphabet lines rendered to images. OCR-B (Raisty) under SIL OFL 1.1 with Reserved Font Name 'OCR-B'. Only synthetic renders were used for training (no font file is redistributed in this wheel), so the reserved-name obligation is not triggered.
  • Engine compatibility: the LSTM .traineddata format is shared across the Tesseract 4.x/5.x line, so one model file serves both (verified).

Metadata

Release files for glyphive-ocrmodel-ocrb 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for glyphive-ocrmodel-ocrb 0.1.0
File Interpreter ABI Platform
glyphive_ocrmodel_ocrb-0.1.0-py3-none-any.whl Python 3 none any Details

Release files / glyphive_ocrmodel_ocrb-0.1.0-py3-none-any.whl

Download URL glyphive_ocrmodel_ocrb-0.1.0-py3-none-any.whl
Size 8.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
811f89b0b4766736f0b6e6ef7b85abd7598dbc40932a04d4733ef06fc8dbe3e0
BLAKE2b-256 checksum
How to use checksums
7ea79f46e9a5941e059da91f7c51d57c513ac7951364023803691b1fa936c5bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.6

Security for glyphive-ocrmodel-ocrb 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page