FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Topics & Contributions
   Video, Camera
(Moderator: REAS)
   Problem accessing Webcam Pixel Data
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: Problem accessing Webcam Pixel Data  (Read 2622 times)
iyf04

iyf04 WWW
Problem accessing Webcam Pixel Data
« on: Mar 5th, 2005, 3:56pm »

Hi,
 
I'm having problems accessing the pixel data from my webcam using Quicktime.
 
This is the code:
 
--------------------------
BImage buf, cam;
void setup()
{
  size(320, 120);
  framerate(24);
  buf = copy();
  beginVideo(160, 120, 8 );
}
void loop()
{
  image(cam, 160, 0);
  image(buf, 0, 0);  
}
void videoEvent()
{
  cam = video.copy();
  buf.replicate(cam, 0, 0, 160, 120, 0, 0, 160, 120);
}
--------------------------
 
It displays the "cam" BImage but not the "buf". I also can't access the pixel data directly from either one, nor from "video" directly.
 
Any ideas would be appreciated...  
 
-iyf04
 
 
Pages: 1 

« Previous topic | Next topic »