Commit 8a48b8df authored by Gary Bradski's avatar Gary Bradski

added destroy all windows

parent c29f0dfd
...@@ -10,3 +10,4 @@ cv.NamedWindow("win", cv.CV_WINDOW_AUTOSIZE) ...@@ -10,3 +10,4 @@ cv.NamedWindow("win", cv.CV_WINDOW_AUTOSIZE)
cv.ShowImage("win", img) cv.ShowImage("win", img)
cv.MoveWindow("win", 200, 200) cv.MoveWindow("win", 200, 200)
cv.WaitKey(0) cv.WaitKey(0)
cv.DestroyAllWindows()
...@@ -63,3 +63,4 @@ if __name__ == "__main__": ...@@ -63,3 +63,4 @@ if __name__ == "__main__":
cv.ShowImage("gaussian", cv.fromarray(n)) cv.ShowImage("gaussian", cv.fromarray(n))
cv.WaitKey(0) cv.WaitKey(0)
cv.DestroyAllWindows()
...@@ -45,3 +45,4 @@ if __name__ == "__main__": ...@@ -45,3 +45,4 @@ if __name__ == "__main__":
cv.ShowImage("camera", paste) cv.ShowImage("camera", paste)
if cv.WaitKey(6) == 27: if cv.WaitKey(6) == 27:
break break
cv.DestroyAllWindows()
...@@ -51,3 +51,4 @@ for name in imglist: ...@@ -51,3 +51,4 @@ for name in imglist:
c = WaitKey(0) c = WaitKey(0)
if c == ord('q'): if c == ord('q'):
break break
cv.DestroyAllWindows()
...@@ -38,3 +38,4 @@ if __name__ == "__main__": ...@@ -38,3 +38,4 @@ if __name__ == "__main__":
# segmentation of the color image # segmentation of the color image
PyrSegmentation(img0).run() PyrSegmentation(img0).run()
cv.DestroyAllWindows()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment