opencv+python+linux+webcam = cannot capture frames
问题 I am trying to code up simple face detection in python using opencv. But unfortunately my opencv is refusing to detect my webcam. I am not sure how it works internally, as documentation is very limited, but CaptureFromCAM(-1) returns some object, but QueryFrame returns nones. When I try to use one of my two cameras for example in cheese, I get video without a problem. capture = cv.CaptureFromCAM(-1) faceCascade = cv.Load("haarcascade_frontalface_alt.xml") while (cv.WaitKey(15)==-1): img = cv