Q-DRFormer: Query-Position Mapping Flow Prediction with Progressive Refinement for Document Rectification
Document image rectification aims to restore images degraded by geometric distortions. Existing U-shaped encoder-decoder methods rely on hierarchical upsampling operations to recover dense flow fields, which provide limited control over the displacement at individual grid positions, leading to spatial inconsistency and poor detail restoration. To address this issue, we propose Q‑DRFormer, a novel framework that formulates rectification as a set prediction task. Specifically, we design a set of queries, where each query corresponds to a position in the flow field grid and is responsible for regressing a 2D anchor point that indicates the sampling position in the distorted input. This one-to-one design establishes a deterministic query-position mapping, enabling fine-grained control and improving the spatial consistency of the predicted flow field. Exploiting this deterministic correspondence, we further propose a progressive flow refinement strategy that progressively refines anchor points through layer-wise offset prediction to enhance fine-grained restoration. Moreover, considering the lack of downstream-task-oriented evaluation in existing studies, we apply the rectification method to scene table detection and contribute a real-world test set along with corresponding evaluation metrics to fill this gap. Extensive experiments demonstrate that Q-DRFormer outperforms existing methods. The code is available at https://github.com/vvvvvair/Q-DRFormer.
Authors
- Jianwei Guo (ORCID: https://orcid.org/0000-0002-3376-1725)
- Jiaxin Zhang (ORCID: https://orcid.org/0000-0001-9787-9514)
- Wenyi Zeng (ORCID: https://orcid.org/0000-0002-8908-3329)
- Qian Yin (ORCID: https://orcid.org/0000-0002-0354-5490)
- Q. Zhang (ORCID: https://orcid.org/0009-0009-5440-7387)
- Jiajie Li (ORCID: https://orcid.org/0000-0003-4851-3457)
- Xin Zheng (ORCID: https://orcid.org/0000-0001-7585-4156)
Institutions
- Beijing Normal University (CN)
- South China University of Technology (CN)
Publication Details
- Journal
- ACM Transactions on Graphics
- Published
- 2026-09-10
- DOI
- https://doi.org/10.1145/3845993
- Primary Topic
- Handwritten Text Recognition Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00