# Get latest frame from VideoIO.opencamera() buffer

**URL:** <https://discourse.julialang.org/t/get-latest-frame-from-videoio-opencamera-buffer/82400>\
**Category:** General Usage\
**Tags:** videoio\
**Created:** [June 8, 2022, 2:44am UTC](https://discourse.julialang.org/t/get-latest-frame-from-videoio-opencamera-buffer/82400 "2022-06-08T02:44:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![arnief3](https://avatars.discourse-cdn.com/v4/letter/a/a698b9/32.png) [@arnief3](https://discourse.julialang.org/u/arnief3)\
**Post date:** [June 8, 2022, 2:44am UTC](https://discourse.julialang.org/t/get-latest-frame-from-videoio-opencamera-buffer/82400/1 "2022-06-08T02:44:09Z")

</div>

Is it possible to grab the latest frame from the VideoIO.opencamera() buffer. Can I flush the buffer so that read(cam) waits for a new frame? Right now I am forced to close and reopen the camera each time I want to grab the latest frame. Any help would be appreciated.
