Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked 2015-06-23 05:59:32 -0500

Nbb gravatar image

BackgroundSubtractorMOG

Hello forum,

I tried to follow this tutorial on background subtraction at http://docs.opencv.org/master/d1/dc5/tutorial_background_subtraction.html

I seem to be having a problem though.

pMOG = createBackgroundSubtractorMOG(); //MOG approach

gives me an error

Error: identifier "createBackgroundSubtractorMOG" is undefined.

Also, for the BackgroundSubtractorMOG2, how do I remove shadows ? I cant seem to add in any parameters when I create the background subtractor MOG2. Looking through http://docs.opencv.org/modules/video/doc/motion_analysis_and_object_tracking.html does not tell me how to use the backgroundsubtractors. Hope someone can clarify on this. Thanks

click to hide/show revision 2
retagged

BackgroundSubtractorMOG

Hello forum,

I tried to follow this tutorial on background subtraction at http://docs.opencv.org/master/d1/dc5/tutorial_background_subtraction.html

I seem to be having a problem though.

pMOG = createBackgroundSubtractorMOG(); //MOG approach

gives me an error

Error: identifier "createBackgroundSubtractorMOG" is undefined.

Also, for the BackgroundSubtractorMOG2, how do I remove shadows ? I cant seem to add in any parameters when I create the background subtractor MOG2. Looking through http://docs.opencv.org/modules/video/doc/motion_analysis_and_object_tracking.html does not tell me how to use the backgroundsubtractors. Hope someone can clarify on this. Thanks