pythonimageopencvshadows

Shadow removal road images


I am trying to do road surface detection using monocular images.

Facing problems with shadows of cars and trees on road resulting in wrong prediction.

I couldn't find any open source library for doing shadow removal.

Came across this paper: Intrinsic Images by Entropy Minimization

also this related post: Shadow Removal in Python OpenCV

I am new to this field and I am finding it very hard to implement the code by reading the paper.

Any help would be greatly appreciated!


Solution

  • Take a look at this github repo. It is an implementation of the article: "Entropy Minimization for Shadow Removal". IJCV, 2009. By the same author from the paper you referenced, Graham Finlayson et al. As the repo noted there is some cases where the algorithm fails:

    Note: The algorithm does not work for non-linearly reddened JPEG images.

    An alternative is to use GrabCut algorithm, which can be found here.