Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -95,7 +95,7 @@ def infer(image_in):
|
|
95 |
|
96 |
for cnt in contours:
|
97 |
peri = cv2.arcLength(cnt, True)
|
98 |
-
approx = cv2.approxPolyDP(cnt, 0.025 * peri,
|
99 |
hull = cv2.convexHull(approx, returnPoints=False)
|
100 |
sides = len(hull)
|
101 |
|
|
|
95 |
|
96 |
for cnt in contours:
|
97 |
peri = cv2.arcLength(cnt, True)
|
98 |
+
approx = cv2.approxPolyDP(cnt, 0.025 * peri, True)
|
99 |
hull = cv2.convexHull(approx, returnPoints=False)
|
100 |
sides = len(hull)
|
101 |
|