From 5878ab6a0f9af8bcbc0779f77a11e4717c4107e9 Mon Sep 17 00:00:00 2001 From: Gary Bradski Date: Sun, 18 Mar 2012 23:12:55 +0000 Subject: [PATCH] added destroyAllWindows at end --- samples/python/edge.py | 1 + samples/python/fback.py | 1 + samples/python/ffilldemo.py | 1 + samples/python/houghlines.py | 1 + samples/python/inpaint.py | 1 + samples/python/lkdemo.py | 1 + samples/python/logpolar.py | 1 + samples/python/minarea.py | 1 + 8 files changed, 8 insertions(+) diff --git a/samples/python/edge.py b/samples/python/edge.py index d4e3d45f8..9413895ca 100755 --- a/samples/python/edge.py +++ b/samples/python/edge.py @@ -57,3 +57,4 @@ if __name__ == '__main__': # wait a key pressed to end cv.WaitKey(0) + cv.DestroyAllWindows() diff --git a/samples/python/fback.py b/samples/python/fback.py index b3f4f91e6..e8ac1822f 100644 --- a/samples/python/fback.py +++ b/samples/python/fback.py @@ -53,3 +53,4 @@ class FBackDemo: if __name__=="__main__": demo = FBackDemo() demo.run() + cv.DestroyAllWindows() diff --git a/samples/python/ffilldemo.py b/samples/python/ffilldemo.py index 2bf465782..339771e08 100755 --- a/samples/python/ffilldemo.py +++ b/samples/python/ffilldemo.py @@ -157,3 +157,4 @@ if __name__ == "__main__": elif c == ord('8'): print("8-connectivity mode is set"); connectivity = 8; + cv.DestroyAllWindows() diff --git a/samples/python/houghlines.py b/samples/python/houghlines.py index 92e359f22..2c697a7ee 100755 --- a/samples/python/houghlines.py +++ b/samples/python/houghlines.py @@ -55,3 +55,4 @@ if __name__ == "__main__": USE_STANDARD = not USE_STANDARD if k == 27: break + cv.DestroyAllWindows() diff --git a/samples/python/inpaint.py b/samples/python/inpaint.py index dbea42e80..ce5a77ff4 100755 --- a/samples/python/inpaint.py +++ b/samples/python/inpaint.py @@ -66,3 +66,4 @@ if __name__=="__main__": if c == ord('i') or c == ord('\n'): cv.Inpaint(img, inpaint_mask, inpainted, 3, cv.CV_INPAINT_TELEA) cv.ShowImage("inpainted image", inpainted) + cv.DestroyAllWindows() diff --git a/samples/python/lkdemo.py b/samples/python/lkdemo.py index 2071023cb..1eed91ba0 100755 --- a/samples/python/lkdemo.py +++ b/samples/python/lkdemo.py @@ -189,3 +189,4 @@ if __name__ == '__main__': night_mode = not night_mode elif cc == ' ': fc = (fc + 1) % len(frames) + cv.DestroyAllWindows() diff --git a/samples/python/logpolar.py b/samples/python/logpolar.py index 0a4186220..23c14f813 100755 --- a/samples/python/logpolar.py +++ b/samples/python/logpolar.py @@ -42,3 +42,4 @@ if __name__ == "__main__": cv.ShowImage("original", src) cv.WaitKey() + cv.DestroyAllWindows() diff --git a/samples/python/minarea.py b/samples/python/minarea.py index d38a7ceaf..cfcaddd77 100755 --- a/samples/python/minarea.py +++ b/samples/python/minarea.py @@ -59,3 +59,4 @@ if __name__ == "__main__": break use_seq = not use_seq + cv.DestroyAllWindows()