Skip to main content

Mobile Document Image Unwarping via Structural Reparameterization and Monarch Attention

By
Dang Duy Nguyen; Nguyen Minh Bui; Trung Khai Hoang; Manh Thai Ha Nguyen; Minh Duc Nguyen; Tuan Linh Dang

Document image unwarping on mobile platforms often requires balancing between high rectification quality and strict computational and memory constraints. In this paper, we present a lightweight yet effective framework that utilizes structural re-parameterization with Monarch attention to enable efficient inference while still maintaining high rectification quality. Our proposed approach adopts a decoupled design by using a high-capacity model during training and then converting it into a compact, sub-quadratic architecture for efficient deployment. This design allows us to significantly reduces computational complexity and memory usage while maintaining competitive rectification accuracy. Extensive evaluations on the DocUNet benchmark show that our lightweight model, with only 2.0 M parameters, achieves competitive rectification accuracy against recent methods. In addition, it supports real-time inference with low latency, making it suitable for mobile deployment. We further demonstrate its practical applicability through comparisons with commercial mobile document scanning applications, where our method delivers superior performance in real-world scenarios.

Read on IEEE Xplore