I’m trying to use Capture to get my MacbookPro’s webcam.
Even following a basic tutorial gives me this same error that I don’t understand.
If I try to run the sketch again I get this prompt: “The last time you opened java, it unexpectedly quit while reopening windows. Do you want to try to reopen its windows again?”
Not sure what’s wrong
any ideas?
this is my code:
import processing.video.*;
Capture video;
void setup() {
size(640,480);
video = new Capture(this,640,480,30);
video.start();
}
void draw() {
video.read();
background(0);
image(video,0,0,mouseX,mouseY);
}