I would like to segment picture of cloths in order to remove the background. The pictures come from online retailers, they usually have an homogeneous white background.
Using Canny edge detector works in most of the cases, but sometimes the cloths are nearly as white as the background making the edges hard to detect.
I tried to play with the min and max parameters in opencv (python), but I can't recover the clean edge, either I do not get the surrounding of the cloths (holes in the reigion) or the the edge is noisy around the cloth.
Here's one of the tricky example:
Simple growing region for background detection also doesn't work well enough.
So how do you detect the contour of an object if it has nearly the same color as the background?