key = cv2.waitKey(0) print(key) >>>-1
I have known that "cv2.waitKey(0)" wait and code does nothing until any key is pressed.