Ask Your Question
0

Averaging Video Frames Into One Image

asked 2013-10-27 12:36:57 -0600

pavlucco gravatar image

updated 2013-10-27 12:37:30 -0600

I'm coding application detecting movement. Advise from my teacher was to make "averaged frame" of all frames in video at first. I'm total newbie with OpenCV, so please give my some tips/advise/example how to make this.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-10-27 14:45:54 -0600

r.a. gravatar image

updated 2013-10-27 23:32:17 -0600

1.You need to build a background model of the video.(The average frame) 2.Than the foreground is approximately = current frame - "Average frame".

look at those links with code and detailed explanation:

http://mateuszstankiewicz.eu/?p=189

Also have a look at opencv docs on background subtraction: http://docs.opencv.org/modules/video/doc/motion_analysis_and_object_tracking.html#backgroundsubtractor

Hope this helps

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-10-27 12:36:57 -0600

Seen: 4,070 times

Last updated: Oct 27 '13