First time here? Check out the FAQ!
answered 2016-12-19 03:11:55 -0600
BackgroundSubtractorMOG was moved to https://github.com/opencv/opencv_contrib.
but you might try to disable the shadow detection
pMOG->setDetectShadows(false);