How do I remove a shadow after MOG2 background subtraction using OpenCV Python? I used all morphological operations, gaussian and median blur, thresholding. it removes noises but deep shadow is resulting in foreground object.
[![enter image description here](https://i.stack.imgur.com/plBSn.png)](https://i.stack.imgur.com/plBSn.png)