Multi-Model Β· 2-Stage Document-to-Markdown Pipeline (152.0 MB)

PP-DocLayoutV3 β†’ PP-OCRv5 Mobile

Run a complete two-stage PaddlePaddle document parsing pipeline 100% locally in your browser on CPU WASM (onnxruntime-web@1.21.0): Stage 1 alex-dinh/PP-DocLayoutV3-ONNX (object-detection, 130.50 MB fp32, Apache-2.0) detects 25-class regions and multi-column reading order, then Stage 2 PaddlePaddle/PP-OCRv5_mobile_det_onnx + PP-OCRv5_mobile_rec_onnx (21.5 MB fp32, Apache-2.0, reusing the shared PP-OCRv5 worker) reads every text/title/table crop in reading order to assemble structured Markdown and JSON.

Independent On-Device Stages (152.0 MB combined)

Stage 1 Β· PP-DocLayoutV3 (130.5 MB fp32)

Model: alex-dinh/PP-DocLayoutV3-ONNX Β· Waiting to initialise.

Stage 2 Β· PP-OCRv5 Mobile (21.5 MB fp32)

Model: PaddlePaddle/PP-OCRv5_mobile_det_onnx + rec_onnx Β· Reuses shared worker.

Structured Document-to-Markdown Studio

Initialise both stages above to extract structured Markdown in PP-DocLayoutV3 reading order.

Stage 1 Layout β€”
Regions Found β€”
Stage 2 OCR β€”
Lines Read β€”

Detected Layout & Reading Order

Assembled Structured Markdown

Run Stage 1 + Stage 2 to assemble structured Markdown in reading order.

Reading-Order Region Crops & PP-OCRv5 Transcripts

Show the code β€” Reading-order Markdown assembler (buildStructuredMarkdown)