Go Down

Topic: capturing images from webcam (Read 544 times) previous topic - next topic

yash92ec

hello sir,
i am working on webcam.
I write following code in processing for taking images.
but it shows only gray color window..

Code: [Select]
import processing.video.*;
Capture webcam;

void setup() {
  size(640,480);
  webcam = new Capture(this,640,480); 
  String[] devices = Capture.list();
  println(devices);
  webcam.settings();
}

void draw() {
  if (webcam.available() == true) {
    webcam.read();
    image(webcam ,0,0);
  }
  saveFrame("line-####.bmp");
}

AWOL

That's Processing.
This is an Arduino forum.
Try a Processing forum.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

PaulS

It is unlikely that the image() method is overloaded to accept a Capture instance as valid input.

Go Up