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