Official implementation of Dual-Page Book Image Rectification via Cross-Page Attention (arXiv).
BookNet rectifies photographed dual-page book images by explicitly modeling the geometric correlation between the two facing pages with a cross-page attention mechanism. We also release Book3D, a large-scale synthetic training set of dual-page book distortions, and Book100, a real-world benchmark for evaluation.
🔥 Good news! Our work has been accepted by IEEE Transactions on Multimedia.
The model is defined in BookNet.py in the root directory.
| Dataset | Type | Hugging Face | Baidu Netdisk |
|---|---|---|---|
| Book3D | Synthetic training set | skliu520/Book3D | Link (code: 5hcf) |
| Book100 | Real-world benchmark | skliu520/Book100 | Link (code: jynf) |
⚠️ Note. Book3D and Book100 are released for non-commercial scientific research purposes only. The book pages contained in these datasets may be subject to third-party copyright, and the datasets must not be used for any commercial purpose or redistributed for commercial use. By downloading them you agree to these terms.
Please refer to the evaluation code in the eval folder.
@article{liu2026booknet,
title={BookNet: Book Image Rectification via Cross-Page Attention Network},
author={Liu, Shaokai and Feng, Hao and Luan, Bozhi and Hou, Min and Deng, Jiajun and Zhou, Wengang},
journal={arXiv preprint arXiv:2601.21938},
year={2026}
}The code in this repository is released under the MIT License. Note that the license covers the code only; the accompanying datasets (Book3D and Book100) are provided for non-commercial academic research use, as stated above.
The codes are largely based on DocUNet, DewarpNet, UVDoc and PaddleOCR-VL. Thanks for their wonderful works.