Random flickers in BackgroundSubMOG2

asked 2018-06-16 01:23:36 -0600

malharjajoo gravatar image

updated 2018-06-16 11:51:53 -0600

Hi,

I have been trying out the various background subtraction models in openCV from this tutorial.

While it claims that Backgroundsub MOG2 method is better than MOG method, my results are otherwise ( I obtained nice results using MOG + simple dilation operation).

There are random flickers ( every now and then, say once in every 7 to 8 seconds, not just at the beginning ) when using the MOG2 method. Can someone explain why this is the case ? Isn't MOG2 supposed to have superior performance compared to MOG ?

======

Kindly see the 2 images below, the first is the original image and the second is the image obtained on bitwise AND of the foreground mask obtained from MOG2 and my original image. This is after approx 12 seconds into the video (the images are from a recorded video) which is playing at nearly 30 FPS, so around 360 frames from the start:

image description

image description

edit retag flag offensive close merge delete

Comments

try to change fps to 25 and measure flicker period

LBerger gravatar imageLBerger ( 2018-06-16 12:48:57 -0600 )edit