mirror of
https://github.com/opencv/opencv.git
synced 2024-11-26 04:00:30 +08:00
Merge pull request #6733 from simonhaenisch:simonhaenisch-improve-watershed.py-example
This commit is contained in:
commit
86b54a52f0
@ -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…
Reference in New Issue
Block a user