I am using OpenCV C++ and grabbing a camera from USB port with cap.read(frame) in my for loop.
However i only want to get a new frame, when its a new frame from the camera. How can i check if the frame is new provided by the camera?
1 | initial version |
I am using OpenCV C++ and grabbing a camera from USB port with cap.read(frame) in my for loop.
However i only want to get a new frame, when its a new frame from the camera. How can i check if the frame is new provided by the camera?