added destroyAllWindows at end
This commit is contained in:
parent
8a48b8dffd
commit
5878ab6a0f
@ -57,3 +57,4 @@ if __name__ == '__main__':
|
||||
|
||||
# wait a key pressed to end
|
||||
cv.WaitKey(0)
|
||||
cv.DestroyAllWindows()
|
||||
|
@ -53,3 +53,4 @@ class FBackDemo:
|
||||
if __name__=="__main__":
|
||||
demo = FBackDemo()
|
||||
demo.run()
|
||||
cv.DestroyAllWindows()
|
||||
|
@ -157,3 +157,4 @@ if __name__ == "__main__":
|
||||
elif c == ord('8'):
|
||||
print("8-connectivity mode is set");
|
||||
connectivity = 8;
|
||||
cv.DestroyAllWindows()
|
||||
|
@ -55,3 +55,4 @@ if __name__ == "__main__":
|
||||
USE_STANDARD = not USE_STANDARD
|
||||
if k == 27:
|
||||
break
|
||||
cv.DestroyAllWindows()
|
||||
|
@ -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()
|
||||
|
@ -189,3 +189,4 @@ if __name__ == '__main__':
|
||||
night_mode = not night_mode
|
||||
elif cc == ' ':
|
||||
fc = (fc + 1) % len(frames)
|
||||
cv.DestroyAllWindows()
|
||||
|
@ -42,3 +42,4 @@ if __name__ == "__main__":
|
||||
|
||||
cv.ShowImage("original", src)
|
||||
cv.WaitKey()
|
||||
cv.DestroyAllWindows()
|
||||
|
@ -59,3 +59,4 @@ if __name__ == "__main__":
|
||||
break
|
||||
|
||||
use_seq = not use_seq
|
||||
cv.DestroyAllWindows()
|
||||
|
Loading…
Reference in New Issue
Block a user