Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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 his links with code and detailed explanation:

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

and look at opencv doc about background substruction: http://docs.opencv.org/modules/video/doc/motion_analysis_and_object_tracking.html#backgroundsubtractor

Hope this helps

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 his those links with code and detailed explanation:

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

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

Hope this helps