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
Processing cant find capture device (Read 1729 times)
Processing cant find capture device
May 25th, 2010, 3:53am
 
Hello

Im trying to use my webcam in processing. When im running example capture file Code:
import processing.video.*;
Capture myCapture;

void setup()
{
 size(200, 200);

 // The name of the capture device is dependent those
 // plugged into the computer. To get a list of the
 // choices, uncomment the following line
 // println(Capture.list());
 // And to specify the camera, replace "Camera Name"
 // in the next line with one from Capture.list()
 // myCapture = new Capture(this, width, height, "Camera Name", 30);
 
 // This code will try to use the last device used
 // by a QuickTime program
 myCapture = new Capture(this, width, height, 30);
}

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

void draw() {
 image(myCapture, 0, 0);
}
,
processing says no capture could be found. Im using windows 7 and logitech c200 webcam. Camera works in windows 7 cause i used it in java media framework and it worked, but JMF has a registry when i can register my capture device. QuickTime is installed from apple website. What should i do to make it work? I found an information about GSVideo, maybe this library is better? please help me
Re: Processing cant find capture device
Reply #1 - May 25th, 2010, 4:01am
 
you need to install WinVDIG as well.
use version 1.0.1

http://www.eden.net.nz/7/20071008
Re: Processing cant find capture device
Reply #2 - May 25th, 2010, 6:35am
 
Cedric wrote on May 25th, 2010, 4:01am:
you need to install WinVDIG as well.
use version 1.0.1

http://www.eden.net.nz/7/20071008


Thank you Cedric it works, I appreciate your help. I`ve got one more question about processing, is it possible to create graphicall menu for application Windows, buttons, text fields etc
Re: Processing cant find capture device
Reply #3 - May 25th, 2010, 7:19am
 
There are some libraries for processing
there is ControlP5 http://www.sojamo.de/libraries/controlP5/
and GUI4Processing http://www.lagers.org.uk/g4p/index.html
Page Index Toggle Pages: 1