title: MOG2 background subtraction Parameters
body: <p>I am trying to use the OpenCVs Background Subtractor class MOG2 to seperate a person moving infront of a camera. I got everything set up and working nicely. But the resulting mask I am getting looks something like this:</p>
  
  <p><img src="https://i.stack.imgur.com/LyxSn.png" alt="MOG2 result"> (default settings)</p>
  
  <p>Now what I would like to get is something like this:</p>
  
  <p><img src="https://i.stack.imgur.com/PimmV.png" alt="MOG2 wished result"> (bad gimp skills :D)</p>
  
  <p>I have already tryed to mess around with the parameter described in <a href="http://docs.opencv.org/modules/video/doc/motion_analysis_and_object_tracking.html?highlight=mog2#backgroundsubtractormog2" rel="nofollow noreferrer">the docu</a>, but all I managed to accomplish was something the looked like a motion blur effect...</p>
  
  <p>So I was hopeing somebody with a better understanding of the algorithm or somebody who has already done something similar might be able to help me!</p>
  
  <p>Thanks in advance, Foaly</p>