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.
↧