Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8548693
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T13:33:12+00:00 2026-06-11T13:33:12+00:00

Just installed SimpleCV Version 1.3 Superpack (Python 2.7) and trying the Hello Word application

  • 0

Just installed SimpleCV Version 1.3 Superpack (Python 2.7) and trying the Hello Word application from Practical Computer Vision with SimpleCV

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()

On the last line it fails with

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 <module>()
----> 1 img = cam.getImage()

C:\Python27\lib\site-packages\SimpleCV\Camera.pyc in getImage(self)
    584
    585         frame = cv.RetrieveFrame(self.capture)
--> 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

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T13:33:14+00:00Added an answer on June 11, 2026 at 1:33 pm

    cv.CreateImage wants an image or an array. I guess your cv.GetSize(frame) is not returning an array (you ought to check exactly why that is).

    You might also try

     newimg = cv.CreateImage(frame, cv.IPL_DEPTH_8U, 3)
    

    where frame should be an IplImage according to the documentation.

    http://docs.opencv.org/modules/highgui/doc/reading_and_writing_images_and_video.html#videocapture-retrieve

    But check that RetrieveFrame isn’t failing for some reason. For example, there are reports of camera access being denied for conflicts with Skype videochat functions. Are you running some software that might conceivably access the camera?

    You can try downloading Process Explorer, and check (Find > Handle or DLL) if there’s any process with a handle containing the string ‘DeviceClasses’.

    UPDATE: my bad, this section only applies to PCI cards and PSEye is USB {
    As a desperate measure you can take a snapshot with System Restore, and install FGeng’s Universal Video Support driver for Windows 7. Then check whether OpenCV recognizes it as a camera connector.

    http://www.fgeng.com/drivers.htm

    If it doesn’t, you can wipe it out with System Restore. It is a desperate measure because anything hogging the camera would probably hog the WDM too, and so chances for success are slim, but you never know.
    }

    UPDATE: did a little bit of research. It turns out that the CL-Eye driver for PSEye is not without problems, depending on the application accessing it. The newer drivers have solved some problems ( threads of February 2012, maybe obsolete ). Sometimes, camera licensing may be an issue ( http://nuigroup.com/forums/viewthread/13699/ ).

    You might try with the CL-Eye SDK instead of the driver, since the former explicitly lists OpenCV in the platforms, while the latter does not.

    If you already have installed the SDK, you may want to check the camera number (#0, #1) just in case there’s another imaging peripheral registered in the system.

    Another possibility is to run DxDiag utility to diagnose a possible DirectShow snag.

    Trouble here is that there’s not much information to be had from the system.

    You might want to copy “C:\Python27\lib\site-packages\SimpleCV\Camera.py” into a backup file, and modify it to be more informative, e.g. temporarily adding a print frame between lines 585 and 586 (N.B.: the line must be indented exactly as the one above).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just installed snow leopard and Xcode, i downloaded version 5.1.38 from the mysql website
Just installed django-db-log module and trying to make it work properly. 'python manage.py syncdb'
Just installed the upgraded restful_authentication plugin for Rails 3 from https://github.com/Satish/restful-authentication . I'm trying
Just installed a clean version of mongodb on Fedora 17 64-bit, but the Mongo
Just installed Python 2.7.3 on a Windows7 machine. How do I get .py files
I just installed Graphite & statsd to get some statistics for my web-application. It
Just installed teamcity 6.5.6 after uninstalling 6.5.4 after trying to implement a svn 1.7
Just installed the trial version of Visual Studio 2010 RTM. Now I keep getting
I just installed the python-mode in Emacs and it seems to be working well.
I just installed AnkhSVN to have subversion support from within Visual Studio 2010. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.