Capturing Webcam Video in Processing 2.0a4
in
Core Library Questions
•
1 year ago
Hi there,
I've just downloaded the latest processing alpha to see if I could capture video from my webcam. This is something I couldn't get working in the old version because I'm using Windows.
The Capture.list() correctly lists my 2 webcams (1 built in and 1 usb). The webcams both work correctly on skype, so I know the drivers work properly. However, using the following code only gives me a black square. There is no error, just doesn't show any images. Any suggestions would be greatly appreciated! Steven
import processing.video.*;
Capture myCapture;
void setup() {
size(200, 200);
//myCapture = new Capture(this, width, height, "WebCam Vista/Live! Cam Chat VF0330 #2", 30);
myCapture = new Capture(this, width, height, "USB2.0 1.3M WebCam", 30);
//noLoop();
}
void draw() {
myCapture.read();
image(myCapture, 0, 0);
}
1