經安全檢測,此網站為安全網站,請放心前往原始網址!

Webcam stream and OpenCV - python - Stack Overflow

You need to add waitkey function at end. Below piece of code works fine for me. import cv cv.NamedWindow("w1", cv.CV_WINDOW_AUTOSIZE) capture = cv.CaptureFromCAM(0) def repeat(): frame = cv.QueryFrame(capture) cv.ShowImage("w1", frame) while ...

stackoverflow.com

網址安全性掃描由 google 提供