plonk
This commit is contained in:
@@ -59,7 +59,7 @@ def run(path):
|
|||||||
|
|
||||||
for c in cnts:
|
for c in cnts:
|
||||||
area = cv2.contourArea(c)
|
area = cv2.contourArea(c)
|
||||||
if area > 20 and area < 40:
|
if area > 20 and area < 80:
|
||||||
# compute the center of the contour
|
# compute the center of the contour
|
||||||
M = cv2.moments(c)
|
M = cv2.moments(c)
|
||||||
cX = int(M["m10"] / M["m00"])
|
cX = int(M["m10"] / M["m00"])
|
||||||
|
|||||||
Reference in New Issue
Block a user