Revision history [back]

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)
cam0.getImage().sideBySide(
cam1.getImage()
).show()


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, there's another interface for doing that.

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)
cam0.getImage().sideBySide(
cam1.getImage()
).show()


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, there's another interface for doing the cookbook example shows how to do that.