使用uv4l raspicam驱动程序设置SimpleCV

时间:2014-12-01 16:12:42

标签: python linux raspberry-pi simplecv

我已经从here安装了uv4l raspicam驱动程序(rasberryPi相机CSI相机模块的驱动程序)。安装完成后,我跟着this discussion删除了使用SimpleCV时的视频预览,并将640x480设置为分辨率。它有效,但现在我在SimpleCV中设置相机属性(如宽度和高度)时遇到一些问题。我跑的时候:

from SimpleCV import *
c = Camera()
im = c.getImage()

im.show()

它以64x64窗口而不是640x480运行。因此,here用户解决了这个问题,但当我用以下代码更改代码时

from SimpleCV import *
    c = Camera(prop_set={"width":640,"height":480})
    im = c.getImage()

    im.show()

它给我一个错误:

[0] WARNING: caught exception: SystemError('/dev/video0 does not support streaming i/o',) WARNING: SimpleCV can't seem to find a camera on your system, or the drivers do not work with SimpleCV.

Traceback (most recent call last):   File "/home/pi/Desktop/sorgenti/Simple_CV_acq.py", line 17, in <module>    im = c.getImage()   File "/home/pi/Code/SimpleCV/SimpleCV/Camera.py", line 618, in getImage     cv.GrabFrame(self.capture) TypeError: Expected CvCapture for argument 'capture'

如何在SimpleCV中设置凸轮的属性?

1 个答案:

答案 0 :(得分:0)

您需要导出环境变量。

export LD_PRELOAD=/usr/lib/uv4l/uv4lext/armv6l/libuv4lext.so