2014-12-01 74 views
2

我已經從here安裝了uv4l raspicam驅動程序(rasberryPi相機CSI相機模塊的驅動程序)。安裝完成後,我使用了this discussion刪除了視頻預覽,當我使用SimpleCV並將640x480設置爲分辨率時。它的工作原理,但現在我有一些問題來設置像SimpleCV中的寬度和高度的攝像頭屬性。當我運行時:用uv4l raspicam驅動程序設置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中設置凸輪的屬性?

+0

嗨,我現在有同樣的問題。你找到解決方案嗎? ;-) – gpuk360 2015-05-04 19:38:02

回答

0

您需要導出環境變量。

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