Quote:Hello everyone recently i am trying to detect the shadow from a image by openCV. So in order to do this i am using the BackgroundSubtractorMOG2 class but it gives me error and am using opencv-3.1.0 version. Please help me how to use this class.
Mat image = imread( "Cloud.bmp", 1 ); Mat back; Ptr< BackgroundSubtractorMOG2 > bg = createBackgroundSubtractorMOG2( 1, 16, true ); bg->apply( image, back ); //Problem is here! imshow( "Shadow", back );
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)