Update findContours parameter type

This commit is contained in:
Suleyman TURKMEN
2018-09-27 07:42:21 +03:00
parent 29e88e50ff
commit 8eb987e393
17 changed files with 25 additions and 25 deletions
@@ -81,7 +81,7 @@ _, bw = cv.threshold(gray, 50, 255, cv.THRESH_BINARY | cv.THRESH_OTSU)
## [contours]
# Find all the contours in the thresholded image
_, contours, _ = cv.findContours(bw, cv.RETR_LIST, cv.CHAIN_APPROX_NONE)
contours, _ = cv.findContours(bw, cv.RETR_LIST, cv.CHAIN_APPROX_NONE)
for i, c in enumerate(contours):
# Calculate the area of each contour