Ask Your Question

Revision history [back]

Camera() takes an integer argument that represents the camera ID. The book "Practical Computer Vision with SimpleCV" covers this on page 21 with this following snippet of code.

from SimpleCV import Camera

cam0 = Camera(0) #first attached camera
cam1 = Camera(1) #second attached camera
cam0.getImage().show() #show picture from first camera
cam1.getImage().show() #show picture from second camera