Java quits when using Capture

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 :frowning:
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);
  
}

1 Like

I’ve still had no luck with this. Even copying the example from processing, my sketch still crashes :frowning:

oh geez…
Its seems this is a Mac OS Catalina issue… Catalina kills capture

1 Like