title: How do I remove the background from this kind of image?
body: <p><img src="https://i.stack.imgur.com/SYxmp.jpg" alt="Image_1"></p>
  
  <p>I want to remove the background of this image to get the person only. I have thousand of images like this, basically, a person and a somewhat whitish background.</p>
  
  <p>What I have done is to use edge detector like canny edge detector or sobel filter (from <code>skimage</code> library). Then what I think possible to do is, whiten the pixels within the edges and blacken the pixels without. Afterwards, the original image can be mask to get the picture of the person only.</p>
  
  <p>However, it's hard to get a closed boundary using canny edge detector. Result using Sobel filter is not that bad, however I don't how to proceed from there.</p>
  
  <p><img src="https://i.stack.imgur.com/Vroyo.png" alt="Sobel_result"></p>
  
  <p>EDIT:</p>
  
  <p>Is it possible to also remove the background between the right hand and the skirt and between hairs?</p>