We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
Image capture with cam (Read 642 times)
Image capture with cam
Mar 27th, 2006, 5:55pm
 
Hi,
I just starting with Processing, and i need some help.
I want to create an interactive instalation, so I want to capture evry minutes a new image with my cam. Someone know how  the code? Should i use a delay? Can someone tell me more about the buffer?
Thanks from Switzerland
bye
Re: Image capture with cam
Reply #1 - Mar 27th, 2006, 7:10pm
 
basicly use the examples for displaying a webcam..
Code:

//set a global variable
int lastTime = 0;
int waitTime = 60000; // in milliseconds

void draw()
{
// blabla stuff for getting webcam
if(lastTime<millis()){
saveFrame("Title"+millis());
lastTime = millis()+waitTime;
}
}
Page Index Toggle Pages: 1