Processing 2.0b6 not recognizing webcams
in
Integration and Hardware
•
10 months ago
Hello,
I'm working on an iMac and trying to capture video from a webcam other than the iSight. I've got iPhone software webcams installed (iWebCamera) that were being recognized in Processing 1.5.1 but are not recognized in Processing 2.0b6.
When I println with the code below it just shows iSight webcam listings. If I disable the iSight, it finds no capture devices.
I've tried reinstalling the drivers but that did not help.
Any ideas/suggestions would be greatly appreciated. Code below.
Thanks,
Brent
import processing.video.*;
Capture cam;
void initVideo() {
//If no device is specified, will just use the default.
//cam = 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, 30);
cam.start();
// Opens the settings page for this capture device.
//camera.settings();
}
void drawVideo() {
if (cam.available() == true) {
cam.read();
image(cam, 0, 0);
// The following does the same, and is faster when just drawing the image
// without any additional resizing, transformations, or tint.
//set(160, 100, cam);
}
}
1