Hello guys
I’m trying to run the code below for 2 days to open the camera by using processing and literally tried every single method but I didn’t solve it, plz need your help
import processing.video.*;
Capture video;
void setup()
{
size(550,550);
video = new Capture(this,1080,720,30);
video.start();
}
The first thing to try are the video example sketches that come with Processing. If they work then there is something wrong with your code, if not then the problem lies somewhere else.
@quark I tried the example sketches and unfortunately, I got the same problem every single time, while my friend’s laptop works perfectly from the first try
really I need your help guys.
Most unlikely to be BIOS since that would affect many applications on your computer. The problem appears to be that the JVM (Java Virtual Machine) can’t initialize the Processing sketch.
In all problems like this you need to be methodical in your approach to the problem.
As I suggested before start with an empty sketch (see below) until you get the sketch to launch then you can try and add functionality such as video. i.e.