Any help appreciated as I am debugging a project that needs to be deployed asap.
I am debugging webcam video freezes so I want to check the isFrameNew() method of videograbber, and log an error when the webcam freezes.
The problem is isFrameNew equals false quite often even with a properly running video signal. So I believe I need a small delay
Here is my code. How would I add a simple timer or delay so I am not logging false errors?
if (_video.isFrameNew()){
//do nothing!
}else{
//log error
ofLogError () << "ofApp update NO NEW VIDEO FRAME!";
}