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

pull/6337/merge
Alexander Alekhin 9 years ago
commit 86b54a52f0
  1. 2
      samples/python/watershed.py

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

Loading…
Cancel
Save