Video artifacts (noise?) - how to reduce effect on foreground detection

asked 2016-08-13 01:35:25 -0600

cvi gravatar image

I'm using MOG2 background subtraction with the default settings and what I'm assuming is noise in the video feed gets registered as foreground. I've eliminated much of the effects of this using a slight initial gaussian blur and also bhy applying a couple of morphologies after the mask is created, but I'm wondering what the best approach is to this.

Here's what a small piece of the RAW video looks like (NOTE: it may appear zoomed in when you play it)

edit retag flag offensive close merge delete


have you try to increase variance threshold using method setVarThreshold

LBerger gravatar imageLBerger ( 2016-08-13 08:18:49 -0600 )edit

@LBerger - I haven't. I'll give that a try and see how it does. Is setVarThresholdGen of any value? The documentation has so little explanation as to what each thing does. Thanks

cvi gravatar imagecvi ( 2016-08-13 15:31:47 -0600 )edit

I think you have to read some reference given here

LBerger gravatar imageLBerger ( 2016-08-14 02:45:57 -0600 )edit