How can I tell BackgroundSubtractorMOG2 which pixels to update to the background model and which pixels shouldn't.
I am facing problem when there's an object entered the scene and stopped for a few ten seconds, the object will be absorbed into the background model.
I wanted to decrease the learning rate or stop the learning around the particular stopped object but how can I do that? Does BackgroundSubtractorMOG2 support using mask in its update function?
I am using OpenCV 2.4.1.