Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

Setting CV_CAP_PROP_POS_FRAMES fails when reading image sequence

$
0
0
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,

Viewing all articles
Browse latest Browse all 41027

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>