Ask Your Question

SimpleCV.VirtualCamera(...) not working on new install

asked 2013-06-01 12:04:11 -0500

cipher gravatar image

I have just installed win7 x86 on intel centrino duo machine and installed SimpleCV on it to test my script but i get error as follows:

import SimpleCV as scv
cam = scv.VirtualCamera("testVideo.avi", "video")
print cam.getImage()

It gives a null image no matter how many frames i print:

<SimpleCV.Image Object size:(0, 0), filename: (None), at memory location: (0x46524b8)>

Can someone point out , what's wrong, scv.system() returns following:

>>> scv.system()
System :  Windows
OS version :  6.1.7600
Python version : 2.7.3
Open CV version : $Rev: 4557 $
PIL version :  1.1.7
Orange module not installed
PyGame Version : 1.9.1release
Pickle Version : $Revision: 72223 $
>>> scv.__version__

Any help or guesses are much appreciated...

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-06-01 22:11:49 -0500

cipher gravatar image

updated 2013-06-01 22:13:28 -0500

I figured out the problem, for the benefits of others on the forum:

The installation of SimpleCV did not add the ffmpeg library to system path which caused the problem reading encoded videos. So I added the following to system path:

<opencv install directory>\opencv\3rdparty\ffmpeg

where "opencv install directory" is the parent directory where opencv is installed by SimpleCV installation, which in my case was:


So in my case I added the following to system PATH:


Alternatively one can copy the files in that folder to their python installation directory, which in my case was:

edit flag offensive delete link more


I tried the above steps and still have problems. Did make sure that C:\SimpleCV1.3\files is in Windows PATH. I ran the book exercise on VirtualCamera and got: TypeError: CvArr argument 'src' must be IplImage, CvMat or CvMatND. Use fromarra y() to convert numpy arrays to CvMat or cvMatND. Any ideas?

2uanta gravatar image2uanta ( 2013-09-04 20:12:31 -0500 )edit

From the looks of this error, it seems that you have run into passing a simplecv image to a opencv python function as argument. if you post your example code, maybe it can be figured out ...

cipher gravatar imagecipher ( 2013-09-11 22:40:34 -0500 )edit

Thanks for the reply. Here is my code. I ran it from the "simplecv" shell: SimpleCV:1> vir = VirtualCamera("test1.mp4", "video") SimpleCV:2> vir.getImage().show() Then I got the error.

2uanta gravatar image2uanta ( 2013-09-12 16:53:03 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2013-06-01 12:04:11 -0500

Seen: 1,515 times

Last updated: Jun 01 '13