i want code to extract foreground from video frames by finding a difference between each frame and the background(already detected)

asked 2013-09-18 00:46:28 -0500

updated 2013-09-18 02:11:18 -0500

berak gravatar image

i want code to extract foreground from video frames by finding a difference between each frame and the background(already detected)

I am working on a project where i have to extract the foreground object from a video, i have already extracted frames from the video, i have already obtained its background by averaging those frames of video, but now i want to extract the foreground by finding out the difference between frames and the back ground,

Can anybody please suggest a c++ code to me for extracting the background, please help, and thanks in advance

edit retag flag offensive close merge delete