Ask Your Question
0

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

asked 2012-09-19 07:52:41 -0500

shaheeb gravatar image

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,

SR

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2012-09-19 08:47:39 -0500

kscottz gravatar image

So to my knowledge there is still no consistent way to select the cameras by name. A lot of it has to do with the underlying OpenCV API. This is a big problem for us too and we will resolve it as soon as we find a viable solution. I think one of the other developers (xamox) is actively looking for a solution.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2012-09-19 07:52:41 -0500

Seen: 1,023 times

Last updated: Sep 19 '12