1. Introduction
Documents, such as textbooks, newspapers, leaflets, and receipts, are available daily, often saved as electronic doc-uments for digital document archives or online message transfer. Since the wide use and convenience of mobile phones, people currently prefer to use mobile phones for digital document copying. However, the captured document images become highly susceptible to shadows when the light sources are blocked. The low brightness in shadow regions reduces the quality and readability of the documen-t image, resulting in illegible content and unpleasant user experience [2], [10], [12], [19], [28], [29]. Thus, shadow removal for document images is a required image processing task in var-ious vision applications [3], [4], [33], [37], [46], [48].
Document image shadow removal. With the assumption of constant background, results of [2] and [24] may cause color distortion or shadow remnant. By using a spatially varying background, our method can produce more desirable result.