Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

explain the parameters of cv2.createbackgroundsubtractormog2()

Explain the parameters of cv2.createBackgroundSubtractorMOG() in python. so that I can eliminate shadows. MOG2 has capability to detect shadows .

like image 706
gunadeep reddy Avatar asked Feb 06 '23 15:02

gunadeep reddy


1 Answers

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.

like image 85
gunadeep reddy Avatar answered May 16 '23 05:05

gunadeep reddy