Can't initialize ps3 eye on mac using opencv with python but c examples work fine

By : matt

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 "", line 5, in <module>
By : matt

With python you can try the cv2 interface:

import cv2

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

This video can help you solving your question :)
By: admin