2015-07-20 07:23:01 -0600 | asked a question | Setting CV_CAP_PROP_POS_FRAMES fails when reading image sequence 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, |
2015-07-20 04:25:37 -0600 | received badge | ● Supporter (source) |