← Shannon Bay's projects
@shannonbayby Shannon Bay · Bay Software Limited
MeshDewarp
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.
KotlinTensorFlow LiteOpenCVPaddleOCRONNXYOLOv8Computer visionOn-device MLOCRAndroid
More from members
All projectsSee what other members are building and what each project is looking for.
Comments · 0