I check other question on google or stackoverflow, they are talking about run cv2.imshow in script, but my code run in jupyter notebook.
Here is my configuration:
image = cv2.imread(file_path) while True: # Press 'q' for exit exit_key = ord('q') if cv2.waitKey(exit_key) & 255 == exit_key: cv2.destroyAllWindows() break cv2.imshow('Image_title', image)