Ask Your Question

How can I connect two cameras usb with SimpleCV?

asked 2013-05-28 15:04:29 -0500

dhikhe gravatar image

i'm trying to connect two cameras in my pc, but I can't do it, I think I need to put the number id of each camera, How can I get it? I'm using windows seven

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2013-05-28 23:25:37 -0500

Lars gravatar image

updated 2013-05-28 23:26:54 -0500

The SimpleCV Cookbook gives an example of using multiple cameras. In general, they're numbered from 0 onwards, so if you have two cameras they will be numbered 0 and 1.

When you call SimpleCV.Camera(), it defaults to picking the highest numbered camera. You can specify it yourself though. For example, if you have to cameras you can get images from both of them and display them side by side:

cam0 = SimpleCV.Camera(0)
cam1 = SimpleCV.Camera(1)

If you have more than two usb cameras, you'll need to make more instances of Camera still. If you're using another type of camera, say your phone's camera through jpeg streaming, the cookbook example shows how to do that.

edit flag offensive delete link more

answered 2014-03-12 09:26:58 -0500

cfrysinger gravatar image

I know I'm bringing up a zombie thread but I wanted to add some info that I just found out. On my Windows 7, I also needed to be sure both cameras were in different USB ports. It didn't work with one configuration but it did work when one was in a USB2.0 port and the other was in a USB3.0 port. Since they are identical cameras, I assume they needed to be on different USB buses or something.

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


Asked: 2013-05-28 15:04:29 -0500

Seen: 923 times

Last updated: Mar 12 '14