Introduction - If you have any usage issues, please Google them yourself
If the object in the image together, then split up and it will be more difficult, the watershed algorithm often used to deal with such issues, usually obtain better results. Watershed segmentation algorithm image as a topographic map, strong brightness region pixel value, while the dark areas are relatively small pixels, image segmentation by finding the catchment basin and watershed boundaries .