I’m trying to open a webcam on a window using:
capture= cv.VideoCapture(0)
while True:
ret, frame=capture.read()
cv.imShow(‘Video’, frame)
if cv.waitKey(2) & 0xFF==ord(‘d’):
break
capture.release()
cv.destroyAllWindows()
and I get the error message; “Module ‘cv2’ has no attribute ‘imShow’”.