Foreground segmentation when background and subject have nearly identical colour
I have an image that has background and foreground with nearly identical color. For example see the link . I have tried grabcut and graphcut to segment but with no success. Can someone suggest me an approach to successfully segment foreground from background in the given image.
It's so much easier to do this when you have a video camera.
^^ it's not the same problem.
try with canny :
Can I see the codes you used in here?
you can use this code. You can use deriche filter (in opencv_contrib instead of scharr)