2020-10-15计算机视觉灰度二值化python显示

 不加destroyAllWindows(),为啥CVshow的窗口也会关闭呢?

因为要释放内存!

go to查看destroyAllWindows()定义如下:

def destroyAllWindows(): # real signature unknown; restored from __doc__
    """
    destroyAllWindows() -> None
    .   @brief Destroys all of the HighGUI windows.
    .   
    .   The function destroyAllWindows destroys all of the opened HighGUI windows.
    """
    pass

猜你喜欢

转载自blog.csdn.net/luoyir1997/article/details/109106602