2012-06-20 38 views
2

我已經通過執行以下「port install opencv + python27」通過macports安裝OpenCV。使用C並調用cvCaptureFromCAM(0)我可以很好地從凸輪捕獲幀。當我用python的cv.CaptureFromCAM嘗試(0)它具有以下死亡:無法使用opencv初始化mac上的ps3 eye,但c例子工作正常

QTKit didn't find any attached Video Input Devices! 
Warning, camera failed to properly initialize! 
Cleaned up camera. 
Traceback (most recent call last): 
    File "test.py", line 5, in <module> 
    temp=cv.CloneImage(frame) 
+0

剛剛發現這一點:HTTP:// stackoverflow.com/questions/5041752/opencv-capture-from-usb-not-isight-osx。我將通過自制軟件嘗試32位版本。 – matt

+0

沒有運氣,同樣的錯誤:( – matt

回答

0

與Python你可以嘗試CV2接口:

import cv2 

# initiate the capture interface 
cv2.VideoCapture() # that's right, no params 
+0

,沒有給出錯誤,但也沒有攝像頭.... – user391339

相關問題