Reputation: 153
I am unable to understand what the parameters of cv2.BackgroundSubtractorMOG and cv2.BackgroundSubtractorMOG2 stand for.
I've gone through this page of official documentation - http://docs.opencv.org/2.4/modules/video/doc/motion_analysis_and_object_tracking.html?highlight=backgroundsubtractormog#backgroundsubtractormog-backgroundsubtractormog
and also through Stack Overflow Page - How to use cv::BackgroundSubtractorMOG in OpenCV?
but I am not able to understand how to manipulate the parameters to get good foreground extraction.
Can somebody please explain me what the parameters of these functions really mean?
P.S. I am using version 2.4.9 of opencv and 2.7.11+ of python.
Upvotes: 1
Views: 5308
Reputation: 165
using these kind of parameter u can eliminate shaodw in mog2.
it is better than mog background subtractor
fgmask = fgbg.apply(frame,fgmask,0.005)
these parameters can eliminate shadow
Upvotes: -1