Go Down

Topic: capturing images from webcam (Read 566 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
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy