Ask Your Question

What's the best idea to remove defferent backgrounds from images?

asked 2017-12-30 01:11:36 -0600

rezaee gravatar image

updated 2017-12-30 01:13:24 -0600

I want to convert this photo:

image description

to this one:

image description

And this photo:

image description

to this:

image description

And son on. I thought I can use color threshold but what if there are some pictures or content inside the photo? because I don't like to damage them and only want to remove the background.

So, as I am new in OpenCV and Image processing, may you help me to find the best solution?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2017-12-30 04:18:35 -0600

supra56 gravatar image

The best idea to remove different backgrounds from images ..... grabcut. Can be found on OpenCV's folder, either python or cpp

edit flag offensive delete link more


Thank you! It was really cool, but as you know it's interactive program, but I need my program to do it automatically.

rezaee gravatar imagerezaee ( 2017-12-31 02:19:10 -0600 )edit

@rezaee. Forgotten to asked. Are you streaming on video or just still photo?

supra56 gravatar imagesupra56 ( 2017-12-31 06:19:48 -0600 )edit

I don't have time today(Sunday). If it is still photo. I suggest you attempt ROI.

supra56 gravatar imagesupra56 ( 2017-12-31 06:27:59 -0600 )edit

Thank you!

rezaee gravatar imagerezaee ( 2018-01-01 21:21:26 -0600 )edit

Question Tools

1 follower


Asked: 2017-12-30 01:11:36 -0600

Seen: 265 times

Last updated: Dec 30 '17