View Single Post
  #1   Spotlight this post!  
Unread 14-12-2013, 10:34
Noam787 Noam787 is offline
Registered User
FRC #4590 (GreenBlitz)
Team Role: Programmer
 
Join Date: Feb 2013
Rookie Year: 2013
Location: Israel
Posts: 8
Noam787 is an unknown quantity at this point
vision with simpleCV problem

So this year we are trying onboard vision using raspberryPI. For the image processing we are trying to use simpleCV lib but we got stuck when we tried to connect to the camera’s (Axis M1011) mjpeg stream with the code below:

Code:
import SimpleCV

cam = SimpleCV.JpegStreamCamera('http://10.45.90.11/axis-cgi/mjpg/video.cgi?resolution=320x240')
pic = cam.getImage()
This code is rising an error in the line “pic = cam.getImage()” :

Code:
File "<pyshell#5>", line 1, in <module>
    pic =cam.getImage()
  File "C:\Python27\lib\site-packages\SimpleCV\Camera.py", line 904, in getImage
    return Image(pil.open(StringIO(self.camthread.currentframe)), self)
  File "C:\Python27\lib\site-packages\PIL\Image.py", line 1980, in open
    raise IOError("cannot identify image file")
IOError: cannot identify image file
If anyone can help us it will help us a lot,
GreenBlitz 4590