-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Bug message:
line 16, in <module>
image, contours, hierarchy = cv2.findContours(thresh, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_NONE)
ValueError: not enough values to unpack (expected 3, got 2)
Solution:
replace
image, contours, hierarchy = cv2.findContours(thresh, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_NONE)
with
contours, hierarchy = cv2.findContours(thresh, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_NONE)
Python: 3.10.6
OpenCV-python: 4.6.0.66
Metadata
Metadata
Assignees
Labels
No labels