Single Document Image Highlight Removal via A Large-Scale Real-World Dataset and A Location-Aware Network

Lu Pan, Yu-Hsuan Huang, Hongxia Xie, Cheng Zhang, Hongwei Zhao, Hong-Han Shuai, Wen-Huang ChengarXiv 2025 · DOI

Introduction

Specular highlights, or glare, pose a significant challenge for document digitization. When photographing glossy magazines, ID cards, or posters, bright reflections often obscure critical text and graphics. For automated systems like Optical Character Recognition (OCR), these "hot spots" are more than just a nuisance; they destroy local contrast and render text unreadable.

Existing highlight removal methods often struggle with documents because they lack high-resolution training data and fail to preserve the fine-grained details of characters. This paper introduces DocHR14K, the first large-scale real-world dataset for document highlight removal, and $L^2$HRNet, a frequency-aware network designed to restore obscured documents with high fidelity.

Overview of the DocHR14K dataset and qualitative comparison of $L^2$HRNet against existing methods.

The DocHR14K Dataset

The cornerstone of this research is the DocHR14K dataset, which addresses the scarcity of high-quality document reflection data.

  • Scale and Resolution: It contains 14,902 image pairs with an average resolution of 2319 × 1553, capturing the intricate details of text and layout.
  • Diversity: The dataset spans six document categories—including books, posters, menus, and cards—and features nine different lighting colors (e.g., warm, cool, RGB) to simulate various real-world environments.
  • Data Collection: To capture perfectly aligned "clean" and "highlighted" pairs, the authors utilized an improved cross-polarization setup. This allows for the physical removal of glare during the "clean" shot without moving the document or the camera.

Methodology: $L^2$HRNet

The proposed $L^2$HRNet (Location-Aware Laplacian Pyramid Network) employs two key innovations to handle the complexities of document restoration.

1. Highlight Location Prior (HLP)

Rather than relying on manual annotations, the network learns to locate highlights using a residual map. By calculating the mathematical difference between a highlighted image and its clean ground truth, the system generates a precise spatial map of the glare. This "free" supervision allows the model to focus its restorative power exactly where it is needed most.

2. Frequency-Aware Architecture

Documents contain both global illumination (the "blobby" glare) and local high-frequency details (sharp text edges). $L^2$HRNet uses a Laplacian Pyramid to decompose the image into different frequency bands:

  • Low-Frequency Suppression: A two-stage cascade (HDNet and HRNet) identifies and removes global reflections.
  • High-Frequency Restoration: A Diffusion-based Enhancement Module (DEM) is used to reconstruct sharp textures. While diffusion models are often used for creative generation, here they serve as powerful refiners, hallucinating missing character details that were partially washed out by glare.
Schematic of the data collection setup using cross-polarization to capture ground-truth clean and highlighted image pairs.

Experimental Results

$L^2$HRNet achieves state-of-the-art (SOTA) results on the DocHR14K benchmark, showing a 5.01% increase in PSNR and a 13.17% reduction in RMSE compared to previous leading methods.

Beyond standard image metrics, the authors tested the model's impact on downstream AI tasks. When processed through GPT-4o, images restored by $L^2$HRNet showed a significant jump in text similarity scores (from 80.9% to 83.5%), proving that the restoration significantly aids machine understanding and OCR accuracy.

Conclusion and Future Work

By combining a massive, diverse dataset with a frequency-aware diffusion architecture, this work sets a new standard for document highlight removal. While the model is computationally more intensive than standard CNNs due to the diffusion process, its ability to recover legible text from severe glare is a major step forward. Future research will focus on optimizing inference speeds and using semantic language cues to help the model "read" and reconstruct text in cases of extreme sensor saturation.

Summary updated

BibTeX
@misc{pan2025single,
  author = {Lu Pan and Yu-Hsuan Huang and Hongxia Xie and Cheng Zhang and Hongwei Zhao and Hong-Han Shuai and Wen-Huang Cheng},
  title = {{Single Document Image Highlight Removal via A Large-Scale Real-World Dataset and A Location-Aware Network}},
  year = {2025},
  eprint = {2504.14238},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.14238},
}
Figure