I am trying to use a webcam with Processing 2.0 using the Capture example provided on the website (
http://processing.org/reference/libraries/video/Capture.html), however it just returns a black image. I can even remove my webcams and it still won't even work with the built in iSight camera. There are no errors that can help me on the right path as to whats happening. However it does work using Processing 1.5.1 with the same code. I am on a Mac 64-bit Snow Leopard and have tried all 2.0 alpha versions. Any ideas on whats going on?
Example code I used from the website is below:
Example code I used from the website is below:
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); }
1