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

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Liu, Wenjie, Wang, Bingshu, Wang, Ze, Chen, C. L. Philip
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913922226847744
author Liu, Wenjie
Wang, Bingshu
Wang, Ze
Chen, C. L. Philip
author_facet Liu, Wenjie
Wang, Bingshu
Wang, Ze
Chen, C. L. Philip
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2507_01422
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle DocShaDiffusion: Diffusion Model in Latent Space for Document Image Shadow Removal
Liu, Wenjie
Wang, Bingshu
Wang, Ze
Chen, C. L. Philip
Computer Vision and Pattern Recognition
Artificial Intelligence
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.
title DocShaDiffusion: Diffusion Model in Latent Space for Document Image Shadow Removal
topic Computer Vision and Pattern Recognition
Artificial Intelligence
url https://arxiv.org/abs/2507.01422