I have a image in which there is garbage. Now i want that my code should separate the garbage into foreground and all the other things of the image into background. But i ma not able to do so. PLease help me as soon as possible in this topic.
I only want to segment the image in which the garbage will be foreground
Regards. the image is shown below
Source: Stack OverFlow gen 2