Merge pull request #6733 from simonhaenisch:simonhaenisch-improve-watershed.py-example
This commit is contained in:
		| @@ -55,7 +55,7 @@ class App: | |||||||
|         cv2.imshow('watershed', vis) |         cv2.imshow('watershed', vis) | ||||||
|  |  | ||||||
|     def run(self): |     def run(self): | ||||||
|         while True: |         while cv2.getWindowProperty('img', 0) != -1 or cv2.getWindowProperty('watershed', 0) != -1: | ||||||
|             ch = 0xFF & cv2.waitKey(50) |             ch = 0xFF & cv2.waitKey(50) | ||||||
|             if ch == 27: |             if ch == 27: | ||||||
|                 break |                 break | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Alexander Alekhin
					Alexander Alekhin