Saving segment of video
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?
do you want to save the matched part of the image to an image , or the images containing the match to a video file ?
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.
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).
Thank you!