Can anyone please let me know how to perform background subtraction to a still image? [closed]

asked 2015-01-26 21:17:36 -0600

sushma gravatar image

updated 2020-10-10 13:00:34 -0600

I went through the codes given in the opencv tutorial. But they are all applied to videos. I tried applying the same to a still image. But everything is being removed. Hence I need your solution. Kindly help.

Thank you

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by sturkmen
close date 2020-10-10 13:00:22.227896

Comments

1

the whole concept of background subtraction needs more than one image

for a single image, it is called 'segmentation'. look at grabcut and watershed

berak gravatar imageberak ( 2015-01-27 04:40:39 -0600 )edit
1

How should the algorithm decide which part is foreground and what is background? If you have a scene with a car and a person in front of a house, is the car part of the foreground? Or are you just interested in the person? Or do you want to remove the house as you are only interested in the clouds?

FooBar gravatar imageFooBar ( 2015-01-27 04:58:10 -0600 )edit