Created
April 25, 2020 09:40
-
-
Save aniruddha27/81925df09f07a52be5a0eae6f1142d8f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Finding contours | |
im_gray = gray(im) | |
im_blur = blur(im_gray) | |
im_thresh = threshold(im_blur) | |
contours, _ = cv2.findContours(im_thresh, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_NONE) |
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)
Thank you
It's working now.
Welcome!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ValueError: too many values to unpack (expected 2)
I'm having this error. How can I solve it?
Any idea.