窗口假死

在Python-opencv中,有时会出现已经cv2.detroyallwindows()但是没有退出窗口的情况。

此时需要在代码段的末尾添加waitKey函数来进行刷新。

http://stackoverflow.com/questions/6116564/destroywindow-does-not-close-window-on-mac-using-python-and-opencv

原因为止,但是这么处理是有效的。