In the following code, DestroyWindow or DestroyAllWindows cannot close the window opened by ShowImage. When I tried to close it by clicking the close button, the window was paused. After killing the window, all IDLE closed.
import cv image = cv.LoadImage("../lena.bmp", 0) cv.NamedWindow("test") cv.ShowImage("test", image) cv.WaitKey() cv.DestroyWindow("test")
I am using OpenCV 2.4.2 with Python 2.7 on Ubuntu 12.04 LTS.
I did something wrong and how can I close the create by ShowImage window?
123hurray
source share