Module 'cv2' has no attribute 'imShow'

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’”.

you need to spell it correctly.

silly typo,

 cv.imshow(‘Video’, frame)

(all lowercase)

“Silly” is a kind word. Thanks for the replies!