title: OpenCV Error: Bad argument (Array should be CvMat or IplImage) file C:\slave\WinInstallerMegaPack\src\opencv\modules\core\src\array.cpp, line 1238
body: <p>Just installed SimpleCV Version 1.3 Superpack (Python 2.7) and trying the Hello Word application from Practical Computer Vision with SimpleCV</p>
  
  <pre><code>from SimpleCV import Camera, Display, Image
  import time
  
  # Initialize the camera
  cam = Camera()
  
  # Initialize the display
  display = Display()
  
  # Snap a picture using the camera
  img = cam.getImage()
  </code></pre>
  
  <p>On the last line it fails with</p>
  
  <pre><code>OpenCV Error: Bad argument (Array should be CvMat or IplImage) in unknown function, file C:\slave\WinInstallerMegaPack\src\opencv\modules\core\src\array.cpp, line 1238
  
  ---------------------------------------------------------------------------
  error                                     Traceback (most recent call last)
  C:\Python27\lib\site-packages\SimpleCV\Shell\Shell.pyc in &lt;module&gt;()
  ----&gt; 1 img = cam.getImage()
  
  C:\Python27\lib\site-packages\SimpleCV\Camera.pyc in getImage(self)
      584
      585         frame = cv.RetrieveFrame(self.capture)
  --&gt; 586         newimg = cv.CreateImage(cv.GetSize(frame), cv.IPL_DEPTH_8U, 3)
      587         cv.Copy(frame, newimg)
      588         return Image(newimg, self)
  
  error: Array should be CvMat or IplImage
  </code></pre>
  
  <p>I am using the PS3 Eye camera via the CL-Eye Driver on a Windows 7 PC. That is via usb. The camera works fine otherwise. Any ideas how I can fix this?</p>