Hi, I am currently using anaconda python 3.7 on macOS Mojave 10.14.6. Here is the code that I use. When I try to close it down (by clicking any key), it freezes. In the window, there's also no "close window" button like in the picture below.
import cv2
image = cv2.imread('./captured_images/frame20.jpg')
cv2.imshow('First frame', image)
cv2.waitKey()
cv2.destroyAllWindows()