← Shannon Bay's projects
Repo

MeshDewarp

@shannonbayby Shannon Bay · Bay Software Limited

On-device document dewarping for Android: straightens curved or folded pages in phone photos before OCR. I converted pretrained PaddleOCR models (PP-OCRv4 DBNet text detection, PP-DocLayout-L layout) from Paddle to ONNX to TFLite with FP16/INT8 quantization, and run them alongside a YOLOv8n document-segmentation model on the mobile GPU. A training-free geometry stage turns the text-line heatmap into B-spline baselines and a polynomial correction mesh, then remaps the image with OpenCV. Profiling cut the pipeline from 9.3 s to 1.2 s per image (7.6x) on a Samsung S21. Extracted from my RecallReader app.

Built withKotlinTensorFlow LiteOpenCVPaddleOCRONNXYOLOv8Computer visionOn-device MLOCRAndroid

Comments · 0

No comments yet. Tried it? Tell Shannon what worked, what didn't, or what you'd want next.
Sign in to comment

More from members

All projects

See what other members are building and what each project is looking for.