Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hi,

spontaneously I would try to use VideoCapture::get(CV_CAP_PROP_POS_FRAMES). If the return value differs more than one to he previous one, you can suggest this amount of missing frames at this position in the file. In your case, before grabbing the 14th image get should return 14, but before grabbing the 15 image get should return 16.

However, this is just a suggestion, I don't know what VideoCapture::get(CV_CAP_PROP_POS_FRAMES) returns in case. Give it a try. cheers greg