Ask Your Question

Revision history [back]

Error message when I try to run this code

these error message : OpenCV: Cannot use FaceTime HD Camera (Built-in) OpenCV: camera failed to properly initialize!

code: import cv2 as cv import numpy as np

cap = cv.VideoCapture(0)

while True: ret, frame = cap.read() cv.imshow('frame', frame) if cv.waitKey(1) & 0xFF == ord('q'): break

cap.release() cv.destroyAllWindows()


macOS Mojave

click to hide/show revision 2
retagged

updated 2018-11-07 12:09:37 -0600

berak gravatar image

Error message when I try to run this code

these error message : OpenCV: Cannot use FaceTime HD Camera (Built-in) OpenCV: camera failed to properly initialize!

code: import cv2 as cv import numpy as np

cap = cv.VideoCapture(0)

while True: ret, frame = cap.read() cv.imshow('frame', frame) if cv.waitKey(1) & 0xFF == ord('q'): break

cap.release() cv.destroyAllWindows()


macOS Mojave