Removing background in image

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
nantha94
Posts: 5
Joined: 2018-12-23T20:00:41-07:00
Authentication code: 1152

Removing background in image

Post by nantha94 »

Hi,

I'm new of this library. i want remove background as per the input image.
Image
nantha94
Posts: 5
Joined: 2018-12-23T20:00:41-07:00
Authentication code: 1152

Re: Removing background in image

Post by nantha94 »

i want only human image without background.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Removing background in image

Post by snibgo »

I would do it by hand, with Gimp.
snibgo's IM pages: im.snibgo.com
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Removing background in image

Post by fmw42 »

nantha94
Posts: 5
Joined: 2018-12-23T20:00:41-07:00
Authentication code: 1152

Re: Removing background in image

Post by nantha94 »

i''m using python to removing background using this tool. but i can't remove background. my project based on the user image.
nantha94
Posts: 5
Joined: 2018-12-23T20:00:41-07:00
Authentication code: 1152

Re: Removing background in image

Post by nantha94 »

snibgo wrote: 2018-12-23T22:37:46-07:00 I would do it by hand, with Gimp.
No, i want to remove command. can you suggest any idea
nantha94
Posts: 5
Joined: 2018-12-23T20:00:41-07:00
Authentication code: 1152

Re: Removing background in image

Post by nantha94 »

nantha94 wrote: 2018-12-25T19:58:16-07:00
snibgo wrote: 2018-12-23T22:37:46-07:00 I would do it by hand, with Gimp.
No, i want to remove background using command. can you suggest any idea
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Removing background in image

Post by fmw42 »

snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Removing background in image

Post by snibgo »

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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Removing background in image

Post by fmw42 »

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.
Post Reply