Hello, I'm using version 3.0.0-rc1 and reading frames of a video through image files using VideoCapture. When I don't set CV_CAP_PROP_POS_FRAMES property, it works fine. However, when I enter any frame number for k below, I go to the same incorrect position (e.g. k=5, instead of cam0_00005.jpg it starts reading from cam0_00086.jpg, whatever k is, it starts from cam0_00086.jpg). For different image sequences, this number is different.
VideoCapture cap("cam0_%05d.jpg");
cap.set(CV_CAP_PROP_POS_FRAMES, k);
Is there something I am doing wrong?
Thanks,
↧