added destroy all windows

This commit is contained in:
Gary Bradski 2012-03-18 23:07:39 +00:00
parent c29f0dfdfa
commit 8a48b8dffd
5 changed files with 5 additions and 0 deletions

View File

@ -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()

View File

@ -63,3 +63,4 @@ if __name__ == "__main__":
cv.ShowImage("gaussian", cv.fromarray(n))
cv.WaitKey(0)
cv.DestroyAllWindows()

View File

@ -45,3 +45,4 @@ if __name__ == "__main__":
cv.ShowImage("camera", paste)
if cv.WaitKey(6) == 27:
break
cv.DestroyAllWindows()

View File

@ -51,3 +51,4 @@ for name in imglist:
c = WaitKey(0)
if c == ord('q'):
break
cv.DestroyAllWindows()

View File

@ -38,3 +38,4 @@ if __name__ == "__main__":
# segmentation of the color image
PyrSegmentation(img0).run()
cv.DestroyAllWindows()