Descanning: From Scanned to the Original Images with a Color Correction Diffusion Model

Junghun Cha, Ali Haider, Seoyun Yang, Hoeyeong Jin, Subin Yang, A. F. M. Shahab Uddin, Jaehyoung Kim, Soo Ye Kim, Sung-Ho Bae

Abstract

Digitizing physical documents often introduces a complex array of degradations, including halftone patterns, bleed-through, and significant color shifts, which separate the scanned version from its original digital source. This paper introduces "Descanning," a formal framework for restoring scanned images to their original digital states. To address this task, we present DESCAN-18K, the first large-scale dataset specifically designed for descanning, and DescanDiffusion, a novel two-stage diffusion-based model. By combining a global color encoder with a conditional local generative refinement process, DescanDiffusion effectively removes complex artifacts while maintaining color fidelity. Experimental results demonstrate that our approach significantly outperforms existing state-of-the-art restoration models and commercial scanning applications.

1. Introduction

While the digitization of physical media is ubiquitous, the resulting scans rarely match the quality of the original digital files. The transition from digital to physical (printing) and back to digital (scanning) introduces a "cocktail" of degradations. These include physical factors like paper aging and wrinkles, printing artifacts like halftone patterns, and scanner-specific issues such as sensor noise and color drift.

Existing image restoration techniques—such as denoising, deblurring, or deraining—typically focus on isolated types of noise. However, descanning requires a holistic approach capable of handling both global color transformations and localized structural artifacts simultaneously. This work formalizes the descanning task and provides the tools necessary to bridge the gap between physical scans and digital originals.

2. The Descanning Challenge

The authors categorize the degradations inherent in scanning into two primary groups:

  1. Color-related Degradation (CD): These are global shifts affecting the entire image, such as changes in saturation, fading over time, or tinting caused by specific scanner hardware.
  2. Non-color-related Degradation (NCD): These are localized, often high-frequency artifacts. Examples include halftone dots from the printing process, "bleed-through" (where content from the reverse side of a page is visible), and physical textures like paper grain or wrinkles.

Traditional datasets are often too small or too specific to capture the interplay between these two degradation types, necessitating a more robust data and modeling approach.

3. The DESCAN-18K Dataset

A major contribution of this work is DESCAN-18K, a comprehensive dataset designed to facilitate research in descanning.

  • Scale and Diversity: The dataset consists of 18,360 pairs of 1024 × 1024 resolution images sourced from 11 different magazine types.
  • Hardware Variability: To ensure the model remains scanner-agnostic, the images were captured using four distinct commercial scanner models from Plustek, Canon, and Fuji Xerox.
  • Complexity: Compared to standard restoration datasets like DIV2K or SIDD, DESCAN-18K contains more complex, locally variant degradations that reflect real-world scanning conditions.

4. Methodology: DescanDiffusion

The proposed DescanDiffusion architecture employs a two-stage process to decouple global color correction from local structural refinement.

4.1 Global Color Correction

The first stage utilizes a ResNet-34 based color encoder. This component predicts the color distribution (means and standard deviations) of the original digital image based on the scan. The scanned image is then re-normalized into a color-corrected version ($I_c$), providing a stable baseline for the subsequent generative stage.

4.2 Local Generative Refinement (LGRDM)

The second stage uses a Conditional Denoising Diffusion Probabilistic Model (DDPM). Standard diffusion models often suffer from "color drift" when they lack strong global constraints. To solve this, the LGRDM is conditioned on both the color-corrected image ($I_c$) and the predicted color-correction vector. This ensures the model can focus on removing local artifacts like halftone patterns and bleed-through while remaining anchored to the correct global color palette.

4.3 Synthetic Data Generation (SDG)

To improve generalization to unseen hardware, the authors developed a Synthetic Data Generation pipeline. This simulates scanning artifacts—such as alpha-blending to mimic bleed-through and Gaussian noise to simulate halftone patterns. Training with a mix of 25% synthetic data (DescanDiffusion+) significantly enhanced the model's robustness.

5. Experimental Results

DescanDiffusion was evaluated against state-of-the-art restoration networks (CycleGAN, Restormer, NAFNet) and leading commercial products (Adobe Scan, Microsoft Lens).

  • Quantitative Performance: On the DESCAN-18K test set, DescanDiffusion achieved a PSNR of 23.40 dB and an SSIM of 0.8717, outperforming NAFNet (22.03 dB) and commercial applications, which typically scored between 15 and 21 dB.
  • Qualitative Superiority: Visual analysis shows that DescanDiffusion effectively erases complex laser-line noise and halftone patterns that other models often blur or ignore.
  • Efficiency: By initiating the diffusion process from the scanned image rather than pure Gaussian noise, the authors reduced inference time by 92%, requiring only 10 reverse steps to achieve high-quality results.

6. Conclusion and Future Work

DescanDiffusion represents a significant step forward in document and image restoration. By explicitly separating color correction from structural denoising, the model achieves superior fidelity to the original digital source.

One identified limitation is the model's occasional tendency to over-smooth intentional artistic textures, such as film grain, by misidentifying them as scanner noise. Future research will focus on refining the synthetic data pipeline and exploring architectures that can better distinguish between intentional aesthetic choices and unwanted degradation.

Summary updated

BibTeX
@inproceedings{cha2024descanning,
  author = {Junghun Cha and Ali Haider and Seoyun Yang and Hoeyeong Jin and Subin Yang and A. F. M. Shahab Uddin and Jaehyoung Kim and Soo Ye Kim and Sung-Ho Bae},
  title = {{Descanning: From Scanned to the Original Images with a Color Correction Diffusion Model}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  url = {https://openreview.net/forum?id=SZSK8PPxi1},
}
Figure