display more on screen

cascade
Cole Deck 5 years ago
parent 9b1c8e46cb
commit 5e560935fe

@ -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):

Loading…
Cancel
Save