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.
IndexSuggestions & BugsWebsite,  Documentation,  Book Bugs › Video Library Example Error
Page Index Toggle Pages: 1
Video Library Example Error (Read 963 times)
Video Library Example Error
Oct 17th, 2008, 7:23am
 
So basically when I run this example (with a video camera hooked up to my laptop):

import processing.video.*;
Capture myCapture;

void setup()
{
 size(200, 200);
 // The name of the device is dependent on what's
 // plugged into the computer. To get a list of the
 // choices, uncomment the following line
 // println(Capture.list());
 String s = "Logitech QuickCam Messenger-WDM";
 myCapture = new Capture(this, s, width, height, 30);
}

void captureEvent(Capture myCapture) {
 myCapture.read();
}

void draw() {
 image(myCapture, 0, 0);
}

I get this error:

"The constructor Capture(Temporary_9589_2873, String, int, int, int) is undefined."



Also, how do you add code to your post?
Re: Video Library Example Error
Reply #1 - Oct 18th, 2008, 6:15pm
 
If I look at the Capture page, I see the constructors:
Quote:
Capture(parent, width, height)
Capture(parent, width, height, fps)
Capture(parent, width, height, name, )
Capture(parent, width, height, name, fps)

So indeed there is no Capture(parent, name, width, height, fps) constructor...

You seem to have succeeded to add code to your post... Smiley
Now, you might want to use the [code] BBCode if you want to use fixed width font.
Or use Edit > Copy for Discourse menu item in PDE.
Page Index Toggle Pages: 1