From 6bfeb1237c4cd65625d3b498115ba5c63edb3e3c Mon Sep 17 00:00:00 2001 From: Cole Deck Date: Sun, 8 Dec 2019 13:27:27 -0600 Subject: [PATCH] loop through them all automatically --- main.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 4acfe53..5379f23 100644 --- a/main.py +++ b/main.py @@ -151,7 +151,7 @@ for c in cnts: orig = image.copy() # loop over the contours individually for c in cnts: - + orig = image.copy() num += 1 # if the contour is not sufficiently large, ignore it if cv2.contourArea(c) < 100 or pixelsPerMetric is None: @@ -289,5 +289,7 @@ for c in cnts: 0.65, (255, 255, 255), 2) # show the output image -cv2.imshow("Item Sorter", orig) + cv2.imshow("Item Sorter", orig) + cv2.waitKey(500) + cv2.waitKey(0) \ No newline at end of file