revert documentation code to working code

This commit is contained in:
2018-08-09 13:45:41 +02:00
parent 6212380893
commit 1274172c18
5 changed files with 18 additions and 65 deletions

View File

@@ -41,11 +41,6 @@ def hsv_mask(hsv, hsv_lower, hsv_upper):
else:
return cv2.inRange(hsv, tuple(hsv_lower), tuple(hsv_upper))
def contour_center(contour):
M = cv2.moments(contour)
return int(M['m10'] / M['m00']) - 30, int(M['m01'] / M['m00']) + 30
class InterruptDelayed(object):
def __enter__(self):