Book image rectification presents unique challenges due to its complex geometric distortions from binding constraints, where left and right pages exhibit distinctly asymmetric curvature patterns. However, existing single-page document image rectification methods fail to capture the coupled geometric relationships between adjacent pages in books. In this work, we introduce BookNet, the first end-to-end deep learning framework specifically designed for dual-page book image rectification. BookNet adopts a dual-branch architecture with cross-page attention mechanisms, enabling it to estimate warping flows for both \rev{individual pages and the book spread}, explicitly modeling how left and right pages influence each other. Moreover, to address the absence of specialized datasets, we present Book3D, a large-scale synthetic dataset for training, and Book100, a comprehensive real-world benchmark for evaluation. Extensive experiments demonstrate that BookNet outperforms existing state-of-the-art methods on book image rectification. \rev{Code and dataset are available at https://github.com/Liu-Shaokai/BookNet.
Figures & tables
Fig. 1: Rectification paradigm comparison. (a) Conventional single flow for individual pages. (b) Single flow fails on books. (c) Our multi-flow solution effectively rectifies books by predicting separate flows (left, right, full).
Fig. 2: Book3D synthetic dataset generation pipeline and representative samples. Left: Blender rendering workspace showcasing the 3D book modeling environment with randomized book proportions and camera poses. Right: Rendered book samples from diverse arXiv academic papers, demonstrating realistic geometric deformations under varied illumination conditions and viewing angles. Top row shows the rendered synthetic book images, while bottom row displays the corresponding ground truth arXiv paper images.
Fig. 3: Representative samples from the Book100 benchmark dataset illustrating diverse capture conditions and content types. Top row: Distorted book images captured under various real-world conditions exhibiting different deformation patterns, lighting variations, and viewing angles. Bottom row: Corresponding high-quality reference scans obtained using professional overhead document cameras, providing ground truth for evaluation.
Attribute
Coverage
Language
English, Chinese, German, French, Japanese, and others
Fig. 4: Overview of the proposed BookNet architecture. Given a distorted book image Id containing both left and right pages, our method extracts features through a CNN backbone and Transformer encoder. The dual-branch decoder employs a two-stage architecture with cross-page attention mechanisms to process learned queries, generating the left flow Ml , the right flow Mr , and the full flow Mf for the left page, the right page, and the book spread respectively . During training, all three flows are supervised, while inference uses the full flow Mf for final rectification.
Method
MSSIM ↑
LD ↓
AD ↓
CER ↓
ED ↓
Distorted
0.28
39.63
0.96
0.0530
172.63
DewarpNet [ 18 ]
0.41
19.98
0.62
0.0478
153.03
DocTr [ 19 ]
0.47
18.10
0.59
0.0516
165.77
DocGeoNet [ 21 ]
0.48
17.84
0.59
0.0507
166.93
PaperEdge [ 24 ]
0.46
14.95
0.56
0.0472
148.10
DocTr++ [ 28 ]
0.40
28.41
0.65
0.0559
185.43
TABLE II: Quantitative Comparison on Book100 Benchmark
Fig. 5: Visual comparison of flow supervision strategies. Left: left and right flows. Middle: full flow only. Right: joint supervision (ours) achieves better gutter alignment.
Fig. 6: Qualitative comparison of document rectification methods on various book pages. Each row shows results from a different method: Distorted (input), DewarpNet [ 18 ] , PaperEdge [ 24 ] , UVDoc [ 57 ] , DocRes [ 58 ] , and BookNet (ours). Our BookNet demonstrates consistent rectification quality across all document types while preserving text readability and image details.
Fig. 7: Zoomed-in qualitative comparison. Each example shows the distorted input, the results of DewarpNet [ 18 ] , UVDoc [ 57 ] and BookNet, and the reference scan. The rectified images of BookNet show less distortions than the other rectification methods.
Trans.
Dual-Br.
Feat. Fusion
MSSIM ↑
LD ↓
AD ↓
CER ↓
ED ↓
Encoder
Decoder
Module
✓
✓
0.47
13.75
0.55
0.0556
185.13
✓
✓
0.48
12.75
0.52
0.0545
171.90
✓
✓
0.45
14.96
0.62
0.0650
206.80
✓
✓
✓
0.48
12.42
0.53
0.0450
141.63
TABLE III: Ablation Study on Architectural Components
Cross-Page Attention
MSSIM ↑
LD ↓
AD ↓
CER ↓
ED ↓
w/o Cross-Page Attention
0.46
13.11
0.58
0.0604
194.30
w/ Cross-Page Attention
0.48
12.42
0.53
0.0450
141.63
TABLE IV: Ablation Study on Cross-Page Attention
Left
Right
Full
MSSIM ↑
LD ↓
AD ↓
CER ↓
ED ↓
✓
✓
0.47
14.43
0.60
0.0611
202.57
✓
0.45
15.01
0.61
0.0566
186.13
✓
✓
✓
0.48
12.42
0.53
0.0450
141.63
TABLE V: Ablation Study on Flow Supervision Strategies
(λl,λr,λf)
MSSIM ↑
LD ↓
AD ↓
(2,2,1)
0.47
12.75
0.58
(1,1,2)
0.47
12.91
0.57
(1,1,1)
0.48
12.42
0.53
TABLE VI: Ablation Study on Loss Weights
Fig. 8: Representative VQA case on the distorted input, the DocRes result, and the BookNet result, evaluated with Qwen2.5-VL-7B.
Fig. 9: Visualization of cross-page attention. The query point at the upper-left corner of the input image attends to the gutter region of the right page , demonstrating learned geometric coupling across pages.
Fig. 10: Robustness to off-center layouts. BookNet produces accurate rectification even when the book spine is significantly off-center.
In recent years, the proliferation of smartphones has led to an upsurge in the digitization of document files via these portable devices. However, images captured by smartphones often suffer from distortions, thereby negatively affecting digital preservation and downstream applications. To address this issue, we introduce DRNet, a novel deep network for document image rectification. Our approach is based on three key designs. Firstly, we exploit the intrinsic geometric consistency inherent in document images to guide the learning process of distortion rectification. Secondly, we design a coarse-to-fine rectification network to leverage the representations derived from the distorted document image, thereby enhancing the rectification result. Thirdly, we propose a unique perspective for supervising the learning of rectification networks, where undistorted document images are employed for supervision, which is free of warping mesh as ground truth in existing methods. Technically, both low-level pixel alignment and high-level semantic alignment jointly contribute to the learning of the mapping relationship between deformed document images and distortion-free ones. We evaluate our method on the challenging DocUNet Benchmark dataset, where it sets a series of state-of-the-art records, demonstrating the superiority of our approach compared to existing learning-based solutions. Additionally, we conduct a comprehensive series of ablation experiments to further validate the effectiveness and merits of our method.
Shaokai Liu, Hao Feng, Wengang Zhou
MoE Key Laboratory of Brain-inspired Intelligent Perception and Cognition, University of Science and Technology of China, Hefei, 230027, China.
Image correction and rectangling are valuable tasks in practical photography systems such as smartphones. Recent remarkable advancements in deep learning have undeniably brought about substantial performance improvements in these fields. Nevertheless, existing methods mainly rely on task-specific architectures. This significantly restricts their generalization ability and effective application across a wide range of different tasks. In this paper, we introduce the Unified Rectification Framework (UniRect), a comprehensive approach that addresses these practical tasks from a consistent distortion rectification perspective. Our approach incorporates various task-specific inverse problems into a general distortion model by simulating different types of lenses. To handle diverse distortions, UniRect adopts one task-agnostic rectification framework with a dual-component structure: a {Deformation Module}, which utilizes a novel Residual Progressive Thin-Plate Spline (RP-TPS) model to address complex geometric deformations, and a subsequent Restoration Module, which employs Residual Mamba Blocks (RMBs) to counteract the degradation caused by the deformation process and enhance the fidelity of the output image. Moreover, a Sparse Mixture-of-Experts (SMoEs) structure is designed to circumvent heavy task competition in multi-task learning due to varying distortions. Extensive experiments demonstrate that our models have achieved state-of-the-art performance compared with other up-to-date methods.
Linwei Qiu, Gongzhe Li, Xiaozhe Zhang +2
Tianmushan Laboratory, Beihang University, Hangzhou, China · State Key Laboratory of High-Efficiency Reusable Aerospace Transportation Technology, Beijing, China · School of Astronautics, Beihang University, Beijing, China +2
Reliable document digitization in uncontrolled capture settings is challenging because real images exhibit multiple interacting degradations rather than a single isolated distortion. Documents thus captured are affected simultaneously by geometric distortions, like page warping, as well as photometric degradations such as non-uniform illumination, and blurring. However, most existing approaches address these factors independently and are evaluated on benchmarks containing only one distortion type, limiting their real-world applicability. We introduce GutenDoc, a large-scale dataset of high-resolution dense-text documents with physically grounded compound degradations. Using physics-based rendering, our dataset jointly models geometric warping and diverse photometric effects, enabling systematic evaluation under realistic capture conditions. We further propose a unified restoration framework that jointly corrects geometric and photometric distortions within a single-network and single-training setup, without the need for degradation-specific retraining or sequential inference passes. Extensive experiments show that our method remains competitive on established single-distortion benchmarks while substantially improving robustness under compound degradations, providing a practical solution for real-world document digitization.
Sujal Burad, Aakanksha, A. N. Rajagopalan +1
Indian Institute of Technology, Madras · Adobe, India