Tuesday, November 29, 2016

Exercise #9 Background Subtraction

For this exercise, we are tasked to subtract the background of any clip. We used this.


First, we get all the frames of the video into a folder.
Then, taking the sequence of images, we convert them to gray values and get the median of a certain pixel from all frames. once the median is chosen, repeat for all pixels. Doing that, we will get the background of the image.
Next, using the background we got, all frames are again converted to its gray value.
Finally, subtracting the background, as long as its within the threshold, we will get the foreground for all the frames and compile.

That is all.









No comments:

Post a Comment