Quantcast
Channel: Processing Forum
Viewing all articles
Browse latest Browse all 1768

Capturing images from webcam

$
0
0
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...
  1. 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");

Viewing all articles
Browse latest Browse all 1768

Trending Articles