samedi 26 avril 2014

OSX - impossible d'initialiser le œil de la ps3 sur mac en utilisant opencv avec python mais c exemples fonctionnent bien - Stack Overflow


I've installed OpenCV via macports by doing the following "port install opencv +python27". Using C and calling cvCaptureFromCAM(0) I can capture frames from the cam just fine. When I try it with python's cv.CaptureFromCAM(0) it dies with the following:


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)



With python you can try the cv2 interface:


import cv2

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


I've installed OpenCV via macports by doing the following "port install opencv +python27". Using C and calling cvCaptureFromCAM(0) I can capture frames from the cam just fine. When I try it with python's cv.CaptureFromCAM(0) it dies with the following:


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)


With python you can try the cv2 interface:


import cv2

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

0 commentaires:

Enregistrer un commentaire