I have used gaussian mixture model explained in this link to seperate fingers from the back-ground. It works decently if the backgroud is plain as below examples.
Input Image:
Output Image:
Actually, in my project environment, the user will be sitting in front of the webcam with hand in foreground and face behind(in background).
Input Image ( User Sitting In front of Camera ):
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.
Output After Applying Gaussian Mixture Model:
So how to extract only the fingers from the output like below: