我正在尝试将我的Android 2.3手机与IP网络摄像头应用程序一起使用,以使用SimpleCV进行显示。以下似乎很好。
from SimpleCV import *
import time
cam = JpegStreamCamera("http://192.168.1.3:1025/videofeed")
img = cam.getImage()
img.show()
Traceback (most recent call last):
File "D:\cam.py", line 5, in <module>
img = cam.getImage()
File "build\bdist.win32\egg\SimpleCV\Camera.py", line 540, in getImage
return Image(pil.open(StringIO(self.camthread.currentframe)), self)
File "C:\Python27\lib\site-packages\pil-1.1.7-py2.7-win32.egg\Image.py", line 1980, in open
raise IOError("cannot identify image file")
IOError: cannot identify image file
最佳答案
这是一个错误,现在实际上已在master分支中修复:
https://github.com/ingenuitas/SimpleCV
关于python - SimpleCv-IOError (“cannot identify image file”)-来自JpegStreamCamera()-适用于Android的IP网络摄像头,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10060828/
相关文章:
image-processing - 开源库可消除视频帧的运动模糊吗?
python - 在 Windows 7 上为 Python 2.7 安装 OpenCV
opencv - 当 useProvidedKeypoints = true 时,cvExtract
matlab - 如何在opencv中将Matlab fft函数转换为cvDft
python - 使用开放式CV在Python中进行背景提取
qt - 带有 QtCreator 的 Ubuntu 12.04 上的 OpenCV 2.4