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);
}
import hypermedia.video.*;
OpenCV opencv;
void setup() {
size( 640, 480 );
// open video stream
opencv = new OpenCV( this );
opencv.capture( 640, 480 );
}
void draw() {
opencv.read();
image( opencv.image(), 0, 0 );
}