Pages: [1]   Go Down
Author Topic: capturing images from webcam  (Read 472 times)
0 Members and 1 Guest are viewing this topic.
ahmedabad
Offline Offline
Newbie
*
Karma: 0
Posts: 10
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Code:
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");
}
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 290
Posts: 25803
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

That's Processing.
This is an Arduino forum.
Try a Processing forum.
Logged

"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.

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 601
Posts: 48543
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Pages: [1]   Go Up
Jump to: