BookNet: Book Image Rectification via Cross-Page Attention Network
Shaokai Liu, Hao Feng, Bozhi Luan, Min Hou, Jiajun Deng, Wengang Zhou
TL;DR
BookNet addresses the challenging problem of rectifying bound book images by modeling coupled deformations across left and right pages using a dual-branch architecture with cross-page attention. The method predicts three warping flows, $\mathbf{M}_l$, $\mathbf{M}_r$, and $\mathbf{M}_f$, trained under a multi-task $L_1$ loss to ensure page-specific and global geometric consistency, with an efficient learnable upsampling scheme for high-resolution results. To support research, the authors release the Book3D synthetic dataset (56,000 samples) and Book100 real-world benchmark (100 images with scans). Empirical results on Book100 show BookNet outperforms state-of-the-art methods on both geometric and OCR-related metrics, and ablations confirm the value of cross-page attention and joint flow supervision for preserving gutter alignment and text readability in diverse books.
Abstract
Book image rectification presents unique challenges in document image processing due to 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 individual pages and the complete 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. Code and dataset will be made publicly available.
