Ask Your Question
0

IP Camera Connect issues

asked 2014-02-07 10:40:15 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

I'm trying to connect a "Bluejay BCN-501" IP Camera

this is the code I am using" from SimpleCV import JpegStreamCamera #Initialize the camera with URL info came = JpegStreamCamera("http://admin:admin@192.168.0.100/video.cgi") came.getImage().show()

but then it shows this error: Traceback (most recent call last): File "C:\Users\JAIME\Desktop\PythonProyects\ipCamera.py", line 4, in <module> came.getImage().show() 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</module>

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-02-09 03:16:28 -0500

Pdf417 gravatar image

updated 2014-02-11 08:43:23 -0500

The camera isn't actually returning an image with the command specified. It returns an http redirection command to an internal web page within the camera where the image is stored.

I'm not too familiar with Bluejay cameras as I use Y-cam cameras most of the time as their CGI commands are much simpler. The command I would use for a Y-cam would be http://admin:admin@192.168.... which is an mjpeg stream.

You need to find the correct command that returns an image (ending with .jpg, mjpg or similar)

Hope this helps.

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: 2014-02-07 10:40:15 -0500

Seen: 731 times

Last updated: Feb 11 '14