https://colab.research.google.com/drive/1TTH3ziuxfa5nQmEqNltBDhrHNGq0c6BX#scrollTo=KR9rWkW3WAVF&line=1&uniqifier=1 cap = cv2.VideoCapture(0)
while True: _, frame = cap.read() cv2_imshow(frame) --------- this line causing problem
key = cv2.waitkey(1) if key == 27: break