Interactive DBNet polygon overlay & probability-map heatmap
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.
Basics · Threshold & Unclip Ablation
Sweep DBNet thresh from 0.2 to 0.7 and unclip_ratio from 1.0 to 2.2 on a live probability map to measure connected-component merging vs fragmenting.
Practical · Multi-Document Scan Queue
Extract oriented text polygons across street signs, invoices, receipts, and plates with Pause/Resume/Cancel, a cropped text-box gallery, and OWASP CSV/JSON coordinate export.
Wild · 5-Regime Detection Stress Suite
Stress-test tiny 8px text, 18° skewed signs, low-contrast receipts, motion blur, and dense multi-column tables measuring recall and box IoU retention.
Multi-model · DBNet Det → CTC Rec (31.2 MB)
Chain PP-OCRv6_small_det_onnx (9.88 MB) into PP-OCRv6_small_rec_onnx (21.31 MB, 18,710-char dict) for full end-to-end multilingual OCR with independent stage release.