title: Improve gaussian mixture model
body: <p>I have used gaussian mixture model explained in this <a href="https://stackoverflow.com/questions/12490256/opencv-color-extraction-based-on-gaussian-mixture-model">link</a> to seperate fingers from the back-ground. It works decently if the backgroud is plain as below examples.</p>
  
  <p><strong>Input Image:</strong>
  <img src="https://i.stack.imgur.com/ze9Tz.jpg" alt="enter image description here"></p>
  
  <p><strong>Output Image:</strong>
  <img src="https://i.stack.imgur.com/CunXM.png" alt="enter image description here"></p>
  
  <p>Actually, in my project environment, the user will be sitting in front of the webcam with hand in foreground and face behind(in background).</p>
  
  <p><strong>Input Image ( User Sitting In front of Camera ):</strong> 
  <img src="https://i.stack.imgur.com/ZZobW.png" alt="enter image description here"></p>
  
  <p>So i have to extract only the hand part and i am trying to do with Gaussian Mixture Model. But the implementation doesn't work well here.</p>
  
  <p><strong>Output After Applying Gaussian Mixture Model:</strong></p>
  
  <p><img src="https://i.stack.imgur.com/KF89S.png" alt="enter image description here"></p>
  
  <p>So how to extract only the fingers from the output like below:</p>
  
  <p><img src="https://i.stack.imgur.com/pxxFa.png" alt="enter image description here"></p>