Instantly share code, notes, and snippets.
ValueError: too many values to unpack (expected 2)
I'm having this error. How can I solve it?
Hi, could you try the following code because it could be possible you have a different OpenCV version.
_, contours, _ = cv2.findContours(im_thresh, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_NONE)
It's working now.