We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e436c3 commit 6489d8aCopy full SHA for 6489d8a
samples/python/watershed.py
@@ -55,7 +55,7 @@ def watershed(self):
55
cv2.imshow('watershed', vis)
56
57
def run(self):
58
- while True:
+ while cv2.getWindowProperty('img', 0) != -1 or cv2.getWindowProperty('watershed', 0) != -1:
59
ch = 0xFF & cv2.waitKey(50)
60
if ch == 27:
61
break
0 commit comments