Isight saveframe every 2 minutes problem
              in 
             Core Library Questions 
              •  
              4 months ago    
            
 
           
             Hello,
            
            
             Since this week I'm trying to get my iSight to capture a single frame (picture) every two minutes, I tried a few things like timers, countdowns and framecount. I finally got the framecount to work in a way, but the problem is it keeps saving every frame. What am I doing wrong?
            
            
             Right now I'm using processing 1.5, since I can't get my iSight to work in v2.
            
            
             Kind regards.
             
             
             
            
 
           import processing.video.*;Capture myCapture;
void setup() {size(800, 600);myCapture = new Capture(this, width, height, 30);smooth();}
void draw() {if (myCapture.available()) {myCapture.read();println(frameCount);}image(myCapture, 0, 0);
if (frameCount == 125);{saveFrame("test-######.png");}}
 
              
              1  
            
 
            
 
            
 
            
             
             
             
 
            
"