Processing Forum
import processing.video.*;
Capture myCapture;
void setup()
{
size(200, 200);
myCapture = new Capture(this, width, height, 30);
}
void captureEvent(Capture myCapture) {
myCapture.read();
}
void draw() {
image(myCapture, 0, 0);
}