GrabCut - Wikipedia
https://en.wikipedia.org/wiki/GrabcutGrabCut is an image segmentation method based on graph cuts. Starting with a user-specified bounding box around the object to be segmented, the algorithm estimates the color distribution of the target object and that of the background using a Gaussian mixture model. This is used to construct a Markov random field over the pixel labels, with an energy functionthat prefers connected regions having the same label, and running a graph cut based opti…