image-to-text · vision-language · D-FINE + MobileNetV4 · onnxruntime-web 1.21.0 WASM · fp32 · 18.59 MB · LGPL-3.0

meiki.txt.recognition.v0 Line OCR

Pareto-optimal 18.59 MB horizontal Japanese + ASCII text recognizer (rtr46/meiki.txt.recognition.v0, LGPL-3.0) running 100% locally on CPU WASM via onnxruntime-web 1.21.0. Redefines line OCR as single-pass D-FINE character detection (up to 48 characters in a 960×32 crop) in ~62 ms with per-character Unicode codepoints and bounding boxes.

rtr46/meiki.txt.recognition.v0 image-to-text WASM · fp32 · 18.59 MB (17.73 MiB) images [1,3,32,960] LGPL-3.0
Model input tensor preview · images [1, 3, 32, 960] (aspect-fit + right/bottom zero-pad) effective 700×32 · padRight 260 px

Recognized Unicode line & character inspector

Initialise meiki.txt.recognition.v0 above to recognize characters on-device.

Select any character box or tile to inspect its Unicode codepoint, script class, and coordinates.

Rendered procedural typography plate locally on Canvas 2D.

Inside meiki.txt.recognition.v0

Per-character Unicode & bounding-box table

Left-to-right characters accepted after horizontal x-overlap NMS (cutoff 0.10 · overlap 0.30)
# Char Unicode Script Conf Crop Box [x1,y1,x2,y2]

Verified ONNX runtime contract

Repository
rtr46/meiki.txt.recognition.v0 (LGPL-3.0)
Architecture
D-FINE detector + MobileNetV4 backbone (max 48 chars)
Weight file
meiki.text.rec.v0.960x32.onnx · 18,593,254 B (18.59 MB / 17.73 MiB, fp32)
Runtime
onnxruntime-web 1.21.0 · CPU WASM EP (dedicated Web Worker)
Why raw ORT
Repo ships raw ONNX without HF config.json or tokenizer files
Inputs
images float32 [1, 3, 32, 960] [0,1] + orig_target_sizes int64 [1, 2] ([960, 32])
Outputs
[char_codes, boxes, scores] → x-overlap NMS (>0.30) → String.fromCodePoint
Vertical sibling
meiki.text.rec.v0.vertical.32x480.onnx (12.87 MB, optional · not loaded)
Show the code — [0,1] CHW float32 preprocessing (rgbaToMeikiFloat32CHW)
Show the code — Off-main-thread onnxruntime-web 1.21.0 D-FINE line OCR (runRecognize)

Explore the meiki.txt.recognition.v0 use-case ladder