Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Peculiar observations with Opencv BackGroundSubtractorMOG2 module — Opencv-3.0.0, Python-2.7.X, Ubuntu-14.04

I am using the BackGroundSubtractionMOG2() from Opencv-3.0.0 inside Python-2.7.x. I am observing something peculiar. That is, when I create the BackGroundSubtraction object and apply it to the first frame of a video feed, the mask that I get has 255 (uint8) at all pixels. This implies that the algorithm thinks the entire image is moving. I find that nonsensical, if it is an initialization issue, then by default the mask should have 0 value at all pixels. Does anyone experience this issue.

Any help would be much appreciated.