Start specific webcam

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!

Hi,

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

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

1 Like