|
Author |
Topic: Problem accessing Webcam Pixel Data (Read 2622 times) |
|
iyf04
|
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
|
|
|
|
|