From 5e560935febed698bc6a2b31d493905aa66e7d1a Mon Sep 17 00:00:00 2001 From: Cole Deck Date: Fri, 6 Dec 2019 12:17:39 -0600 Subject: [PATCH] display more on screen --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 53232a7..5e56c07 100644 --- a/main.py +++ b/main.py @@ -227,7 +227,8 @@ for c in cnts: hull2 = cv2.convexHull(c) defects = cv2.convexityDefects(c,hull) #print(str(defects.size) + " match") - cv2.drawContours(orig, (approx.astype("int")), -1, (255, 0, 0), 8) + cv2.drawContours(orig, (hull2), -1, (0, 0, 255), 8) + cv2.drawContours(orig, (approx), -1, (255, 0, 0), 6) convexness = area_contour / cv2.contourArea(hull2) #print(str(convexness) + " % fill") #if not cv2.isContourConvex(approx):