Hi,
I'm new of this library. i want remove background as per the input image.
Removing background in image
Re: Removing background in image
i want only human image without background.
Re: Removing background in image
i''m using python to removing background using this tool. but i can't remove background. my project based on the user image.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Removing background in image
See OpenCV grabcut. You can use OpenCV in python code
https://docs.opencv.org/3.3.1/d8/d83/tu ... abcut.html
https://pythonprogramming.net/grabcut-f ... -tutorial/
https://docs.opencv.org/3.3.1/d8/d83/tu ... abcut.html
https://pythonprogramming.net/grabcut-f ... -tutorial/
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Removing background in image
GrabCut might succeed without a user-supplied mask, but I doubt it for this image. The top half is fairly easy, but not the bottom half, especially around the left foot.
snibgo's IM pages: im.snibgo.com
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Removing background in image
Grabcut and Clipping magick may help, but I suspect you will need to manually edit it. Clipping Magick allows you to quickly draw around the object and have it remove the background. But for complex backgrounds you need to draw it multiple places to get all the background remove. But you still may have to manually edit it with very complex backgrounds. Photoshop and Gimp have elastic outline tools that may help.