Ask Your Question
0

Camera is not taking proper input...i don't know how to deal with it..

asked 2013-06-08 04:49:12 -0500

Purva3192 gravatar image

updated 2013-06-09 00:29:20 -0500

jayrambhia gravatar image

Actually for the first time i am using SimpleCV..so i don't know very much about it....so i need help to sort out my problem.. In my case i am taking input from my Web Cam ...written simple code given in tutorial ...with SimpleCV...i am getting error msg..something like this....

purva@ubuntu:~/SmCV$ python sCV1.py
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
there is no soundcard
ERROR: 
Traceback (most recent call last):
  File "sCV1.py", line 6, in <module>
    i.show()
  File "/usr/lib/pymodules/python2.7/SimpleCV/ImageClass.py", line 5447, in show
    d = Display(self.size())
  File "/usr/lib/pymodules/python2.7/SimpleCV/Display.py", line 158, in __init__
    scvLogo = SimpleCV.Image("simplecv").scale(32,32)
  File "/usr/lib/pymodules/python2.7/SimpleCV/ImageClass.py", line 787, in __init__
    self._pil = pil.open(self.filename).convert("RGB")
  File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 1952, in open
    fp = __builtin__.open(fp, "rb")
IOError: [Errno 2] No such file or directory: '/usr/lib/pymodules/python2.7/SimpleCV/sampleimages/simplecv.png'

code of file....sCV1.py is....

from SimpleCV import *
cam = Camera()

while True:
  i = cam.getImage()
  i.show()
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2013-06-08 10:45:18 -0500

Both your posts point to the exact same error. Copying the Logo Image ( or any Image ) to the said destination should solve it. As seen here here

edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 2013-06-08 04:49:12 -0500

Seen: 628 times

Last updated: Jun 09 '13