Multi-model · 31.2 MB Combined CPU WASM · 2 Independent Web Workers · Apache-2.0

PP-OCRv6 Small End-to-End OCR: DBNet Det → CTC Rec

Stage 1 — PaddlePaddle/PP-OCRv6_small_det_onnx (9.88 MB fp32 DBNet detector on onnxruntime-web@1.21.0 CPU WASM) finds oriented text-line polygons. Stage 2 — PaddlePaddle/PP-OCRv6_small_rec_onnx (21.31 MB: 21.16 MB SVTR CTC ONNX + 0.15 MB 18,710-vocab inference.yml dictionary) deskews each polygon crop and decodes multilingual text lines completely on-device.

Loading starter street-sign scene…

End-to-end recognized text polygons (Stage 1 DBNet → Stage 2 CTC)

Recognized text lines per detected polygon (reading order)

Stage 1 detected polygons paired with Stage 2 CTC decoded text, crop previews, and confidence scores
# Line Crop Recognized Text Rec Conf Det Conf Box [x0, y0, x1, y1]

Independent stage workers (31.2 MB combined CPU WASM)

Stage 1 · PP-OCRv6 Small Det (DBNet Boxes)

PaddlePaddle/PP-OCRv6_small_det_onnx · 9.88 MB fp32 · Apache-2.0

Waiting to initialise Stage 1…

Stage 2 · PP-OCRv6 Small Rec (CTC Text)

PaddlePaddle/PP-OCRv6_small_rec_onnx · 21.31 MB fp32 · 18,710-vocab dict · Apache-2.0

Waiting to initialise Stage 2…

Show the code — Stage 2 isolated onnxruntime-web@1.21.0 CTC batch recognizer (runRecognizeCrops)
Show the code — Greedy CTC decoder across 18,710-char multilingual dictionary (decodeCtcLogits)