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

Skipping all but the latest frame in VideoCapture

$
0
0
As an answer to the question "[Skipping frames in VideoCapture](http://answers.opencv.org/question/24714)" Will Stewart presented `grap()` for skipping frames. But how many frames to I have to skip until I reach the current one? In a loop the frames of a camera are processed using a very time consuming function. In the meantime the camera is providing further frames and as loop is doing the next `vcap.read()` it gets an old buffered frame. That delays the output even further than it is already delayed by the processing anyway. How to skip all of theses frames. I am looking for something like `vcap.flush_read_buffer()` except for the latest frame.

Viewing all articles
Browse latest Browse all 41027

Latest Images

Trending Articles



Latest Images

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