Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

Simple delay timer

$
0
0

@eco_bach1 wrote:

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!";
   }

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles