Hadal Research

Qori-OCR

A 3.13M-parameter CTC word recogniser trained from scratch on 300k synthetic crops and 6,106 real ones. It is small (4.05 MB as int8) and quick (11.4 ms per crop on one x86 core). It is also less accurate than recognisers a third of its size — this page shows both, because the second half is the interesting part.

weights (ONNX, fp32 + int8)benchmark reportinference example

§ Result

Word accuracy on the held-out crop sets, greedy CTC, no lexicon, no beam search. Every bar in a chart was produced on the same images with the same transform and the same decoder, so the comparison is like-for-like rather than two papers’ tables.

IIIT-5K — 3,000 word crops0–100%
PP-OCRv6 small96.5%
PP-OCRv5 en95.3%
PP-OCRv6 tiny88.5%
Qori-OCR79.7%
SVT — 647 word crops0–100%
PP-OCRv6 small92.1%
PP-OCRv5 en89.8%
PP-OCRv6 tiny81.1%
Qori-OCR77.3%
ICDAR-2015 — 2,075 word crops0–100%
PP-OCRv6 small78.4%
PP-OCRv5 en75.6%
PP-OCRv6 tiny62.4%
Qori-OCR53.3%

Paired on individual crops, Qori-OCR is ahead on 243 and behind on 718 relative to PP-OCRv6 tiny, which has 1.11M parameters and ships in 4.46 MB. Against PP-OCRv6 small the overall gap is 19.6 points. The advantage the design was aiming for — smaller than the smallest high-precision recogniser with equal accuracy — was not reached: Qori-OCR is smaller than SVTRv2-T’s 5.13M, but it is not in that accuracy class.

§ Size and speed

Where it does hold up is the budget. Single thread, one x86 core, batch 1, ONNX Runtime; sizes are the released files.

Parameters3,126,864 after 30.4% structured pruning (4,492,032 before)
Disk, int84.05 MB static int8 · 7.69 MB dynamic int8 · 11.99 MB fp32
Latency, x86 1t9.9 ms dynamic int8 · 11.4 ms static int8 · 16.8 ms fp32 (4.49M)
For scalePP-OCRv6 small 25.4 ms / 21.2 MB · PP-OCRv6 tiny 5.1 ms / 4.46 MB
Input3×48×320, aspect preserved, 8 px per CTC step, ≤ 40 characters
Charset96 classes: 95 printable ASCII, case-sensitive
§ Limits

Measured, not hedged. A release page that only lists wins is not worth reading.

  • Accuracy is the headline miss: 69.9% cleansed word accuracy against 89.4% for a 5.27M model and 78.2% for a 1.11M one, on the identical crops.
  • Static int8 is platform-dependent. The same 4.05 MB graph measures 69.5–69.8% on aarch64 and 63.9% on the x86 container used for the training run; the fp32 graph reproduces exactly on both. Measure it on the target before shipping it.
  • ASCII only, crops only, no detection and no rotation correction — it recognises a word or short line you have already cropped.
  • 1,314 of its 1,338 case-only errors are uppercase references emitted in mixed or lower case. Uppercasing predictions lifts case-sensitive exact match from 45.8% to 69.2%, but that is a convention, not a capability.
  • Weakest on short, clean words — 77.8% on 1–3 character labels against 85.2% for PP-OCRv6 tiny — which reads as a data-budget signature: 306k training crops against the tens of millions the PP-OCR series uses. Distillation from PP-OCRv6 small was planned and not run; 84.2% of current predictions are within one edit of the reference, which is the headroom a teacher or a lexicon would target.
§ Details
ArchitectureDepthwise MetaFormer (RepDW mixers, four late attention blocks), BiGRU neck, CTC head
Training300,000 MJSynth + 6,106 real crops; 82,854 steps + 8 epochs; one T4; $0.92 billed
ValidationCER 0.1789, 65.5% exact match on 615 held-out crops
Held outIIIT-5K 3,000 · SVT 647 · ICDAR-2015 2,075
FormatsONNX fp32, dynamic int8, static int8 (QOperator)
Runtimeonnxruntime + numpy + pillow; no torch, no paddle
LicenceResearch use; training crops carry ICDAR/SVT/IIIT-5K research terms

Every figure here comes from per-crop predictions published with the weights. The full protocol, error analysis and the optimisation ladder are in the benchmark report.