Ask Your Question
0

Averaging Video Frames Into One Image

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

pavlucco gravatar image

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

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 -0500

r.a. gravatar image

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

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
Login/Signup to Answer

Question Tools

Stats

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

Seen: 2,694 times

Last updated: Oct 27 '13