Document Image Rectification Bases on Self-Adaptive Multitask Fusion
Heng Li, Xiangping Wu, Qingcai Chen
TL;DR
This paper tackles distorted document image rectification by exploiting multi-granular cues across global and local features. It introduces SalmRec, an end-to-end framework that uses inter-task feature aggregation and a gating mechanism to dynamically balance global (3D coordinates, UV maps) and local (horizontal/vertical lines) information, with a Transformer decoder predicting the 2D deformation field. The approach achieves state-of-the-art results on DIR300, DocReal, and DocUNet benchmarks and improves OCR metrics (ED/CER) through effective cross-task fusion. Ablation studies confirm that the proposed FA and gating components mitigate negative interference among tasks while enhancing feature complementarity. Overall, SalmRec demonstrates that adaptive, cross-task collaboration among auxiliary features can significantly improve document rectification and downstream recognition in real-world scenarios.
Abstract
Deformed document image rectification is essential for real-world document understanding tasks, such as layout analysis and text recognition. However, current multi-task methods -- such as background removal, 3D coordinate prediction, and text line segmentation -- often overlook the complementary features between tasks and their interactions. To address this gap, we propose a self-adaptive learnable multi-task fusion rectification network named SalmRec. This network incorporates an inter-task feature aggregation module that adaptively improves the perception of geometric distortions, enhances feature complementarity, and reduces negative interference. We also introduce a gating mechanism to balance features both within global tasks and between local tasks effectively. Experimental results on two English benchmarks (DIR300 and DocUNet) and one Chinese benchmark (DocReal) demonstrate that our method significantly improves rectification performance. Ablation studies further highlight the positive impact of different tasks on dewarping and the effectiveness of our proposed module.
