DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Processing With Two Camera Simultaneously
// description of your code here
Processing with two camera simultaneously
import processing.video.*;
Capture capture1;
Capture capture2;
void setup() {
size(640, 480);
// If no device is specified, will just use the default.
capture1 = new Capture(this, 320, 240);
// capture2 = new Capture(this, 320, 240);
// To use another device (i.e. if the default device causes an error),
// list all available capture devices to the console to find your camera.
//String[] devices = Capture.list();
//println(devices);
// Change devices[0] to the proper index for your camera.
//cam = new Capture(this, width, height, devices[0]);
// Opens the settings page for this capture device.
//camera.settings();
}
void captureEvent(Capture myCapture){
myCapture.read();
}
void draw() {
image(capture1, 0, 0);
image(capture2, 360, 0);
}




