Merge pull request #6733 from simonhaenisch:simonhaenisch-improve-watershed.py-example

This commit is contained in:
Alexander Alekhin 2016-06-27 16:44:24 +00:00
commit 86b54a52f0

View File

@ -55,7 +55,7 @@ class App:
cv2.imshow('watershed', vis)
def run(self):
while True:
while cv2.getWindowProperty('img', 0) != -1 or cv2.getWindowProperty('watershed', 0) != -1:
ch = 0xFF & cv2.waitKey(50)
if ch == 27:
break