diff --git a/samples/python/watershed.py b/samples/python/watershed.py index 1725acc095..0ea43bea55 100755 --- a/samples/python/watershed.py +++ b/samples/python/watershed.py @@ -105,3 +105,5 @@ if __name__ == "__main__": cv.AddWeighted(wshed, 0.5, img_gray, 0.5, 0, wshed) cv.ShowImage("watershed transform", wshed) + cv.DestroyAllWindows() +