Saving segment of video

asked 2015-06-24 01:59:44 -0500

Hi all,

Say I want to want to run a clip through OpenCV's template matching, and if it sees a matching image, save the video segment with the matching image. What would be the relevant function(s) for actually saving the video segment?

edit retag flag offensive close merge delete


do you want to save the matched part of the image to an image , or the images containing the match to a video file ?

berak gravatar imageberak ( 2015-06-24 02:17:33 -0500 )edit

I want to split the video up; to save the segment of the video that contains the matched part to one file and the part that doesn't match into a separate file.

iliketurtles gravatar imageiliketurtles ( 2015-06-24 02:46:32 -0500 )edit

I suppose that you want to save just the parts of the video that contains the searched template image, so I would suggest you to do an if template, then save video (using VideoWriter).

thdrksdfthmn gravatar imagethdrksdfthmn ( 2015-06-24 03:46:32 -0500 )edit

Thank you!

iliketurtles gravatar imageiliketurtles ( 2015-06-24 23:05:19 -0500 )edit