Capturing images from webcam
in
Core Library Questions
•
6 months ago
hello sir,
i am working on webcam.
I write following code in processing for taking images.
but it shows only gray color window..
And also this code doesn't turn on webcam...
I write following code in processing for taking images.
but it shows only gray color window..
And also this code doesn't turn on webcam...
import processing.video.*;
Capture webcam;
void setup() {
size(640,480);
webcam = new Capture(this,640,480);
String[] devices = Capture.list();
println(devices);
}
void draw() {
if (webcam.available() == true) {
webcam.read();
image(webcam ,0,0);
}
saveFrame("line-####.bmp");
1