title: Failing to capture video using OpenCV and Python on Ubuntu
body: <p>I'm trying to write a simple python script to capture an image from a webcam using OpenCV. This is running on Ubuntu 11.10 32-bit.</p>
  
  <p>when I run lsusb in the terminal i get:</p>
  
  <blockquote>
    <blockquote>
      <p>Bus 002 Device 002: ID 045e:00f7 Microsoft Corp. LifeCam VX-1000</p>
    </blockquote>
  </blockquote>
  
  <p>Which leads me to believe that the driver for the camera is installed</p>
  
  <p>In a python shell I type:
  capture=cv.CaptureFromCAM(0) # also  tried -1, 1, 2, 3</p>
  
  <p>but capture is always null.</p>
  
  <p>I also tried:
  capture = cv.CreateCameraCapture(0)</p>
  
  <p>But i get the same results.</p>
  
  <p>Would appreciate any help</p>
  
  <p>Cheers,</p>