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