I am using OpenCV 2.4.3 (latest version) to detect foreground from video streams using the built-in GMG algorithm. The result works fine, but I also want to remove the front shadow, in my case, the shadow of a moving person. I could not find a parameter similar to MoG's “shadow detection parameter” in opencv2.4.2 for removing shadows. I read the original article for this and found that the “Heuristic model of trust” might be useful, but still can't handle it in my code. Can anyone help? Thank you
source share