1 | initial version |
Take a look at GrabCut. Here is a link to a PyimageSearch blog that discusses it (with code) I tried the code and its not perfect but it does work
ttps://www.pyimagesearch.com/2020/07/27/opencv-grabcut-foreground-segmentation-and-extraction/