image-to-text · vision · LCNetV4 + RepLKFPN DBNet · onnxruntime-web@1.21.0 WASM · fp32 · 9.88 MB · Apache-2.0

PP-OCRv6 Small Det — Differentiable Binarization Text-Line Detector

Locate printed, handwritten, rotated, and street-scene text polygons directly on-device using PaddlePaddle/PP-OCRv6_small_det_onnx (image-to-text, 2.48M parameters, 9.88 MB decimal across inference.onnx 9.88 MB + inference.yml 885 B, Apache-2.0) running 100% locally on CPU WASM via onnxruntime-web@1.21.0 with live probability-map heatmap inspection and instant DBNet threshold & unclip-ratio tuning.

PaddlePaddle/PP-OCRv6_small_det_onnx image-to-text WASM · fp32 · 9.88 MB x [1,3,H,W] BGR → fetch_name_0 [1,1,H,W] Apache-2.0

Interactive DBNet polygon overlay & probability-map heatmap

Detected DBNet polygon Selected polygon High-probability text kernel

Loading starter street-sign scene…

Detected text-line polygons (reading order — click a box to inspect)

Run PP-OCRv6 Small Det above, then click any polygon on the canvas or list below to inspect its 4 quad vertices, orientation angle, kernel area, and unclip expansion.

See inside PP-OCRv6 Small Det

Raw DBNet probability map (fetch_name_0 [1, 1, H, W])

Each pixel predicts text-kernel probability in [0, 1]. Moving the thresh or unclip_ratio slider re-decodes this live probability tensor in 0 ms without re-running ONNX.

Verified ONNX runtime & model-card contract

Repository
PaddlePaddle/PP-OCRv6_small_det_onnx (Apache-2.0)
Architecture
LCNetV4 backbone + RepLKFPN neck + DBNet head (2.48M params; 84.1% benchmark Hmean)
Task
image-to-text (multilingual oriented text-line detection)
Artifacts
inference.onnx (9,880,512 B) + inference.yml (885 B) = 9.88 MB decimal
Input tensor
x [1, 3, H, W] float32 BGR ImageNet-normalized (mean 0.485/0.456/0.406, std 0.229/0.224/0.225)
Output tensor
fetch_name_0 [1, 1, H, W] float32 DBNet probability map
YAML defaults
DBPostProcess: thresh=0.2, box_thresh=0.45, unclip_ratio=1.4, max_candidates=3000
Runtime
onnxruntime-web@1.21.0 CPU WASM EP (logLevel error, logSeverityLevel 3, Web Worker)
Show the code — BGR ImageNet preprocessing matching inference.yml (preprocessDetRgbaToBgrChw)
Show the code — Off-main-thread onnxruntime-web@1.21.0 DBNet session run & zero-copy probability transfer (runDetect)

Why PP-OCRv6 Small Det matters in the browser

At just 9.88 MB on universal CPU WASM, PP-OCRv6 Small Det matches or exceeds heavy server detectors across rotated street signs, dense tables, and receipts without sending private documents off the device.