1 | initial version |
Assuming you are using VideoCapture in HighGUI, you can do n number of frame grabs, without actually loading the images;
http://docs.opencv.org/modules/highgui/doc/reading_and_writing_images_and_video.html#videocapture-grab
"The methods/functions grab the next frame from video file or camera and return true (non-zero) in the case of success."
This way you can quickly bypass however many frames you want.
2 | Added note on loop |
Assuming you are using VideoCapture in HighGUI, you can do n number of frame grabs, without actually loading the images;
http://docs.opencv.org/modules/highgui/doc/reading_and_writing_images_and_video.html#videocapture-grab
"The methods/functions grab the next frame from video file or camera and return true (non-zero) in the case of success."
This way you can quickly bypass however many frames you want.want. I do that in a loop with a parameter that I can pass in, in order to make adjustments during execution.