loop through them all automatically
This commit is contained in:
parent
4fe1348fd2
commit
6bfeb1237c
4
main.py
4
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:
|
||||
@ -290,4 +290,6 @@ for c in cnts:
|
||||
|
||||
# show the output image
|
||||
cv2.imshow("Item Sorter", orig)
|
||||
cv2.waitKey(500)
|
||||
|
||||
cv2.waitKey(0)
|
Loading…
x
Reference in New Issue
Block a user