Skipping frames in VideoCapture
I'm doing some motion detection on a video and while doing the processing, it sometimes is handy to simply skip a couple of frames in order to have a bigger impact on the e.g. optical flow detection. Currently I'm simply loading frames in a loop like that:
for( int i = 0; i < playbackSpeed; i++ )
{
originalImage = videoReader.getNextImage();
}
Though I'd much rather just skip a couple of frames instead of just loading more, because doing this ends up in a little performance problem. Cheers for the help.
mrzl
What is your hardware and os? What implementation of cv::VideoCapture do you use?
I'm using Win8 64bit with the standard cv::VideoCapture implementation ( not sure what you mean ) with opencv version 2.4.7