DocShaDiffusion: Diffusion Model in Latent Space for Document Image Shadow Removal

Wenjie Liu, Bingshu Wang, Ze Wang, C. L. Philip Chen
7/2/2025
cs.CVcs.AI

No confident code implementation found for this paper. 2 possible matches can be shown below.

Abstract

Document shadow removal is a crucial task in the field of document image enhancement. However, existing methods tend to remove shadows with constant color background and ignore color shadows. In this paper, we first design a diffusion model in latent space for document image shadow removal, called DocShaDiffusion. It translates shadow images from pixel space to latent space, enabling the model to more easily capture essential features. To address the issue of color shadows, we design a shadow soft-mask generation module (SSGM). It is able to produce accurate shadow mask and add noise into shadow regions specially. Guided by the shadow mask, a shadow mask-aware guided diffusion module (SMGDM) is proposed to remove shadows from document images by supervising the diffusion and denoising process. We also propose a shadow-robust perceptual feature loss to preserve details and structures in document images. Moreover, we develop a large-scale synthetic document color shadow removal dataset (SDCSRD). It simulates the distribution of realistic color shadows and provides powerful supports for the training of models. Experiments on three public datasets validate the proposed method's superiority over state-of-the-art. Our code and dataset will be publicly available.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 2 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{liu2025docshadiffusion,
  title  = {DocShaDiffusion: Diffusion Model in Latent Space for Document Image Shadow Removal},
  author = {Wenjie Liu and Bingshu Wang and Ze Wang and C. L. Philip Chen},
  year   = {2025},
  eprint = {2507.01422},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.01422v1}
}

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/2507.01422.svg)](https://codeofpaper.com/paper/2507.01422)

Discussion