Start specific webcam


#1

Have been using the following code from the Cinder CaptureBasic sample to start a feed from the webcam:

mCapture = ci::Capture::create(640, 480);
mCapture->start();

Now to my question is it possible to start a specific device (camera) when there are multiple cameras connected to the computer and if so how?
Thanks!


#2

Hi,

the 3rd parameter is the device:
ci::Capture::create(640,480,device)

And I remember Capture::getDevices() will give you all available devices.