added destroyAllWindows at end

This commit is contained in:
Gary Bradski 2012-03-18 23:12:55 +00:00
parent 8a48b8dffd
commit 5878ab6a0f
8 changed files with 8 additions and 0 deletions

View File

@ -57,3 +57,4 @@ if __name__ == '__main__':
# wait a key pressed to end
cv.WaitKey(0)
cv.DestroyAllWindows()

View File

@ -53,3 +53,4 @@ class FBackDemo:
if __name__=="__main__":
demo = FBackDemo()
demo.run()
cv.DestroyAllWindows()

View File

@ -157,3 +157,4 @@ if __name__ == "__main__":
elif c == ord('8'):
print("8-connectivity mode is set");
connectivity = 8;
cv.DestroyAllWindows()

View File

@ -55,3 +55,4 @@ if __name__ == "__main__":
USE_STANDARD = not USE_STANDARD
if k == 27:
break
cv.DestroyAllWindows()

View File

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

View File

@ -189,3 +189,4 @@ if __name__ == '__main__':
night_mode = not night_mode
elif cc == ' ':
fc = (fc + 1) % len(frames)
cv.DestroyAllWindows()

View File

@ -42,3 +42,4 @@ if __name__ == "__main__":
cv.ShowImage("original", src)
cv.WaitKey()
cv.DestroyAllWindows()

View File

@ -59,3 +59,4 @@ if __name__ == "__main__":
break
use_seq = not use_seq
cv.DestroyAllWindows()