@SiberiaBear
2014-12-16T21:19:09.000000Z
字数 2045
阅读 5054
raspberryPi
固定地址:
解决办法:重启驱动程序
错误提示:
libv4l2: error setting pixformat: Device or resource busy
HIGHGUI ERROR: libv4l unalbe to ioctl S_FMT
WARNING:SimpleCV can't seem to find a camera on your system, or the drivers do not work with SimpleCV.
ERROR:
Traceback (most recent call last):
File "camera.py", line6, in <module>
img = cam.getImage()
File "/usr/local/lib/python2.7/dist-packages/SimpleCV/Camera.py", line 579, in getImage
if (not self.threaded):
AttributeError: Camera instance has no attribure 'threaded'
解决办法:3句话
pi@raspberrypi ~ $ pkill uv4l
pi@raspberrypi ~ $ uv4l --driver raspicam --auto-video_nr --encoding yuv420 --nopreview
pi@raspberrypi ~ $ export LD_PRELOAD=/usr/lib/uv4l/uv4lext/armv6l/libuv4lext.so
最后可以ls /dev
一下,检查一下有没有video0
参考:http://www.raspberrypi.org/forums/viewtopic.php?t=57788
解决办法:重新编排缩进
错误提示:
File "motion.py", line 15
current.save(display)
IndentationError: unindent does not match any outer indentation level
解决办法:
重新编排缩进,很有可能是TAB
键和4个空格键混合使用的错误
错误提示:
(例)
AttributeError: Display instance has no attribute 'isDown'
解决办法:
错误的把Display.isDone写成Display.isDown
错误提示:
(例)
AttributeError: 'NoneType' object has no attribute 'draw'
意为,没有找到类型,从而不会有draw属性
解决办法:
从前边的处理过程看问题,可能是没有捕获到物体
错误提示:
Fatal Python error: (pygame parachute) Segmentation Fault
未解决
错误提示:
Fatal Python error: ceval: tstate mix-up
Aborted
未解决
错误提示:
must be sequence of length 2, not 1
如题:必须是一个2位长度的序列,而不是1位的
比如我犯这样的错误是因为将2位的坐标只写了1位
或者:featureset.coordinates()
不等价于(featureset.x, featureset.y)
错误提示:
an integer is required
错误提示中给出的错误段中有一个量是integer类型的,现在你指定的不是这个类型的,所以报错