Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Multiple cameras: How to identify attached cameras for use with Camera() or DigitalCamera()

Hi Folks!

Both Camera() and DigitalCamera() can use the device index to specify which source to capture from. The documentation mentions that the index corresponds to the device ID from /dev/video/. I was hoping for a list interface (so perhaps something like Camera.list()) that would give me the possible indices that I can then use to initialize the necessary Camera interfaces.

My intent is to set up a multi-camera rig and capture images from all attached cameras simultaneously. This will not be a stereo camera setup, but rather an arbitrarily large multiple camera setup, so I cannot assume a max number of cameras or the device index and hardcode this into my sketch.

I am developing on OSX Lion and I plan to use USB cameras (planning on trying the PS3Eye, as well as simple logitech webcams) connected to a high-speed USB 2.0 hub.

Thank you in advance for your advice,