Go to Post As a famous saying goes, don't criticize someone till you have walked a mile in their shoes. - Steve W [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #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
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 22:39.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi