Opt-in glyphive OCR model fine-tuned for Nimbus Mono PS (base16c channel).
Project description
glyphive-ocrmodel-courier
An opt-in OCR model for glyphive, fine-tuned for Nimbus Mono PS renderings of the base16c alphabet.
pip install glyphive-ocrmodel-courier
glyphive extract -f scan/ --from-images --ocr-engine tesseract-glyphive-courier -C out
Installing it registers a tesseract-glyphive-courier 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 glyphivecourier.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_courier/glyphivecourier.traineddata"]
Licensing
- Base model: a fine-tune of Tesseract
tessdata_best/eng(Apache-2.0, redistributable). Exact base used: version4.00.00alpha:eng:synth20170629 (tessdata_best; trained with Tesseract 5.4.1), SHA-2568280aed0782fe27257a68ea10fe7ef324ca0f8d85bd2fd145d1c2b560bcb66ba. - Training corpus: synthetic — randomly generated base16c-alphabet lines rendered to images. Trained via Nimbus Mono PS (URW), the metric-compatible clone of the PostScript core font 'Courier' that FPDF renders; distributed by URW under the AFPL/URW font license. Only synthetic renders were used for training; no font file ships in this wheel.
- Engine compatibility: the LSTM
.traineddataformat is shared across the Tesseract 4.x/5.x line, so one model file serves both (verified).
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 Distributions
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 glyphive_ocrmodel_courier-0.1.0-py3-none-any.whl.
File metadata
- Download URL: glyphive_ocrmodel_courier-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.0 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52bd59ac386af4ace4f0abef6aa5c62cc0efb2f69bf3c05bf014b9b1ae9dd12c
|
|
| MD5 |
d51eb0908b8d1d959b826728c498ecf0
|
|
| BLAKE2b-256 |
d7f98496a832649472dad146d37d4e53ed3751ec076c5d701b7e0f81f5ce13ae
|