Ask Your Question

Revision history [back]

cv2.imshow freezes after trying to close it on MacOs

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()

image description

click to hide/show revision 2
retagged

updated 2019-11-05 01:00:10 -0600

berak gravatar image

cv2.imshow freezes after trying to close it on MacOs

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()

image description

click to hide/show revision 3
retagged

updated 2019-11-05 01:00:35 -0600

berak gravatar image

cv2.imshow freezes after trying to close it on MacOs

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()

image description