Update app.py
Browse files
app.py
CHANGED
|
@@ -254,8 +254,8 @@ def analyze(image, threshold_pct):
|
|
| 254 |
# VISUALIZATION
|
| 255 |
# =========================================================
|
| 256 |
#vis = cv2.cvtColor(orig_gray, cv2.COLOR_GRAY2BGR)
|
| 257 |
-
cv2.drawContours(vis, [hull_cnt], -1, (
|
| 258 |
-
cv2.drawContours(vis, [cnt], -1, (
|
| 259 |
|
| 260 |
|
| 261 |
defect_contours, _ = cv2.findContours(
|
|
|
|
| 254 |
# VISUALIZATION
|
| 255 |
# =========================================================
|
| 256 |
#vis = cv2.cvtColor(orig_gray, cv2.COLOR_GRAY2BGR)
|
| 257 |
+
cv2.drawContours(vis, [hull_cnt], -1, (0, 0, 255), 2) # hull
|
| 258 |
+
cv2.drawContours(vis, [cnt], -1, (255, 0, 0), 2) # print boundary
|
| 259 |
|
| 260 |
|
| 261 |
defect_contours, _ = cv2.findContours(
|