This commit is contained in:
Piotr Dobrowolski 2020-04-14 18:29:45 +02:00
parent 1130906f03
commit 2f3934d5eb

View File

@ -59,7 +59,7 @@ def run(path):
for c in cnts:
area = cv2.contourArea(c)
if area > 20 and area < 40:
if area > 20 and area < 80:
# compute the center of the contour
M = cv2.moments(c)
cX = int(M["m10"] / M["m00"])