Predicting the Original Appearance of Damaged Historical Documents

Zhenhua Yang, Dezhi Peng, Yongxin Shi, Yuyi Zhang, Chongyu Liu +1 more
12/16/2024
cs.CV

Official code: yeungchenwa/HDR (115 stars, last commit 2025-07-15).

Abstract

Historical documents encompass a wealth of cultural treasures but suffer from severe damages including character missing, paper damage, and ink erosion over time. However, existing document processing methods primarily focus on binarization, enhancement, etc., neglecting the repair of these damages. To this end, we present a new task, termed Historical Document Repair (HDR), which aims to predict the original appearance of damaged historical documents. To fill the gap in this field, we propose a large-scale dataset HDR28K and a diffusion-based network DiffHDR for historical document repair. Specifically, HDR28K contains 28,552 damaged-repaired image pairs with character-level annotations and multi-style degradations. Moreover, DiffHDR augments the vanilla diffusion framework with semantic and spatial information and a meticulously designed character perceptual loss for contextual and visual coherence. Experimental results demonstrate that the proposed DiffHDR trained using HDR28K significantly surpasses existing approaches and exhibits remarkable performance in handling real damaged documents. Notably, DiffHDR can also be extended to document editing and text block generation, showcasing its high flexibility and generalization capacity. We believe this study could pioneer a new direction of document processing and contribute to the inheritance of invaluable cultures and civilizations. The dataset and code is available at https://github.com/yeungchenwa/HDR.

View on arXivView PDF

Code Implementations(1)

yeungchenwa/HDROfficial100%

[AAAI2025 Oral] Predicting the Original Appearance of Damaged Historical Documents

1154Shell, PythonMay 2, 20241 years ago

Similar Papers

Cite this paper

@article{yang2024predicting,
  title  = {Predicting the Original Appearance of Damaged Historical Documents},
  author = {Zhenhua Yang and Dezhi Peng and Yongxin Shi and Yuyi Zhang and Chongyu Liu and Lianwen Jin},
  year   = {2024},
  eprint = {2412.11634},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.11634v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2412.11634.svg)](https://codeofpaper.com/paper/2412.11634)

Discussion