shadow removal in OpenCV 2.4.3

2019-03-21 05:38发布

问题:

I am using OpenCV 2.4.3 (the latest version) to detect foreground from video streams using built-in GMG algorithm. The result works fine, but I want to also remove the foreground shadow, in my case, the shadow of a moving person. I couldn't find a parameter that is similar to "shadow detection parameter" of MoG in opencv2.4.2 for removing shadows. I've read the original paper for this, and found "Heuristic Confidence Model" part might be helpful, but still couldn't handle it in my code. Can someone help? Thanks.

回答1:

I can't help you directly, but I can point you towards the work of Graham Finlayson who has done a lot of work into shadow removal from colour images. See for example:

  • Entropy Minimization for Shadow Removal
  • On the Removal of Shadows from Images