From 8a48b8dffdf1ba9e557858b19b525fe143e01972 Mon Sep 17 00:00:00 2001 From: Gary Bradski Date: Sun, 18 Mar 2012 23:07:39 +0000 Subject: [PATCH] added destroy all windows --- samples/python/minidemo.py | 1 + samples/python/numpy_array.py | 1 + samples/python/numpy_warhol.py | 1 + samples/python/peopledetect.py | 1 + samples/python/pyramid_segmentation.py | 1 + 5 files changed, 5 insertions(+) diff --git a/samples/python/minidemo.py b/samples/python/minidemo.py index 8c5924caa8..cbc754e933 100755 --- a/samples/python/minidemo.py +++ b/samples/python/minidemo.py @@ -10,3 +10,4 @@ cv.NamedWindow("win", cv.CV_WINDOW_AUTOSIZE) cv.ShowImage("win", img) cv.MoveWindow("win", 200, 200) cv.WaitKey(0) +cv.DestroyAllWindows() diff --git a/samples/python/numpy_array.py b/samples/python/numpy_array.py index 8065aa64ab..b47d0541ef 100644 --- a/samples/python/numpy_array.py +++ b/samples/python/numpy_array.py @@ -63,3 +63,4 @@ if __name__ == "__main__": cv.ShowImage("gaussian", cv.fromarray(n)) cv.WaitKey(0) + cv.DestroyAllWindows() diff --git a/samples/python/numpy_warhol.py b/samples/python/numpy_warhol.py index 97f32a9ae7..f440abc037 100644 --- a/samples/python/numpy_warhol.py +++ b/samples/python/numpy_warhol.py @@ -45,3 +45,4 @@ if __name__ == "__main__": cv.ShowImage("camera", paste) if cv.WaitKey(6) == 27: break + cv.DestroyAllWindows() diff --git a/samples/python/peopledetect.py b/samples/python/peopledetect.py index 10e7a2915c..89623e2a7c 100644 --- a/samples/python/peopledetect.py +++ b/samples/python/peopledetect.py @@ -51,3 +51,4 @@ for name in imglist: c = WaitKey(0) if c == ord('q'): break +cv.DestroyAllWindows() diff --git a/samples/python/pyramid_segmentation.py b/samples/python/pyramid_segmentation.py index 80293e2bd8..2142287483 100755 --- a/samples/python/pyramid_segmentation.py +++ b/samples/python/pyramid_segmentation.py @@ -38,3 +38,4 @@ if __name__ == "__main__": # segmentation of the color image PyrSegmentation(img0).run() + cv.DestroyAllWindows()