Multi-model · 28.3 MB Combined CPU WASM · 2 Independent Web Workers · 100% Apache-2.0

PP-LCNet Auto-Deskew → PP-OCRv5 Mobile Pipeline

Stage 1 — PaddlePaddle/PP-LCNet_x1_0_doc_ori_onnx (6.8 MB fp32 WASM) detects 90°/180°/270° rotation and straightens the scan. Stage 2 — reused models/pp-ocrv5-mobile/worker.js (PaddlePaddle/PP-OCRv5_mobile_det_onnx + recognizer, 21.5 MB fp32 WASM) runs DBNet + CTC OCR on BOTH the raw rotated scan and the deskewed scan so you can see the exact extraction recovery side by side.

Rendering rotated freight invoice scan…

Raw Rotated OCR vs Deskewed Clean OCR

Without Deskew (Raw Scan → OCR)

Pending

With PP-LCNet Auto-Deskew → OCR

Pending

Initialise both workflow models above to compare raw rotated OCR failure against deskewed PP-OCRv5 recovery.

Quantitative Raw vs Deskewed Extraction Breakdown

Side-by-side PP-OCRv5 Mobile metrics before and after Stage 1 PP-LCNet auto-deskew
Metric Raw Rotated Scan After PP-LCNet Deskew Recovery Delta

Pipeline Stage Models (28.3 MB Combined Apache-2.0 CPU WASM)

Stage 1 · PP-LCNet_x1_0_doc_ori Orientation

PaddlePaddle/PP-LCNet_x1_0_doc_ori_onnx · image-to-text · 6.8 MB fp32 · Apache-2.0

Waiting to initialise Stage 1…

Stage 2 · PP-OCRv5 Mobile 2-Stage OCR

PaddlePaddle/PP-OCRv5_mobile_det_onnx + rec · image-to-text · 21.5 MB fp32 · Apache-2.0

Waiting to initialise Stage 2…

Show the code — PpOcrv5StageClient reusing built models/pp-ocrv5-mobile/worker.js with independent lifecycle