Explain the parameters of cv2.createBackgroundSubtractorMOG()
in python. so that I can eliminate shadows. MOG2 has capability to detect shadows .
Using these kinds of parameters you can eliminate shadows in MOG2. It is better than BackgroundSubtractorMOG
.
fgmask = fgbg.apply(frame, fgmask, 0.005)
These parameters generally help to eliminate shadows.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With