https://www.openprocessing.org/
Dear all, I am trying to capture a live video online by writing codes in openprocessing. Although the code work well in processing itself, it does not work in openprocessing and the message (Capture is not defined) usually appears.
what shall i do to fix this problem
this is the used code:
import processing.video.*;
Capture video;
void setup(){
size(640,480);
video= new Capture(this,640,480);
video.start();
}
void captureEvent( Capture video){
video.read();
}
void draw(){
image(video,0,0,width,height);
}