We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
Code works but Video doesn't show (Read 538 times)
Code works but Video doesn't show
May 4th, 2010, 7:58am
 
Hi...

I can't figure this out. I've entered the following Live Video code from Shiffman's book, but when I run it, I only see the output window. The inbuilt camera on the mac shows a green light but I can't see the video image. Funnily, I don't even get an error message.

Code:

import processing.video.*;

Capture video;

void setup() {
 size(320, 240);
 video = new Capture(this, 320, 240, 15);
}

void draw() {
 if(video.available()) {
   video.read();
 }
}


Please help!
Page Index Toggle Pages: 1