Removing Shadows from Images of Documents

Proceedings of ACCV 2016

     Steve Bako1          Soheil Darabi2          Eli Shechtman2     
        Jue Wang2         Kalyan Sunkavalli2        Pradeep Sen1         

1 University of California, Santa Barbara         2 Adobe         


In this work, we automatically detect and remove distracting shadows from photographs of documents and other text-based items. Documents typically have a constant colored background; based on this observation, we propose a technique to estimate background and text color in local image blocks. We match these local background color estimates to a global reference to generate a \textit{shadow map}. Correcting the image with this shadow map produces the final unshadowed output. We demonstrate that our algorithm is robust and produces high-quality results, qualitatively and quantitatively, in both controlled and real-world settings containing large regions of significant shadow.

Paper and Additional Materials



author = {Steve Bako and Soheil Darabi and Eli Shechtman and Jue Wang and Kalyan Sunkavalli and Pradeep Sen},

title = {Removing Shadows from Images of Documents},

journal = {Asian Conference on Computer Vision (ACCV 2016)},

year = {2016},


The information (source code, data sets, etc.) provided on this website is for non-commercial, research purposes only. This page contains documents, source code, and other files that could be protected by copyright. They are provided here for reasonable academic fair use. Interested parties are referred to the official published version of the documents which are available from the copyright holder through the external link.