Ask Your Question

Revision history [back]

If you keep the shadow detection parameter as true, you'd get a gray area like this:

image description

Threshold this image to remove the gray areas and make it black. As for removing the noise, you'll have to try different morphological operations like dialation and erosion to get rid of it. This is the result for the image above:

image description