简体   繁体   中英

Get latest frame from camera using opencv

I am using opencv 3.0 to capture frames from video camera. But processing the frame takes some time, so the next time I fetch a frame, it gives me an older frame. I want to capture always the last frame, how can I do this? capture.get(CV_CAP_PROP_POS_FRAMES) gives me error.

请尝试在同一函数中两次调用“捕获>> MatImage”或“ capture.read(MatImage)”语句。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM