Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error for cv2.findContours() #54

Open
shivgana opened this issue Aug 3, 2020 · 2 comments
Open

error for cv2.findContours() #54

shivgana opened this issue Aug 3, 2020 · 2 comments

Comments

@shivgana
Copy link

shivgana commented Aug 3, 2020

line 137 in leafdetectionALLmix.py,
contours,hierarchy = cv2.findContours(bordered, cv2.RETR_TREE, cv2.CHAIN_APPROX_NONE)
error occured:
ValueError: too many values to unpack (expected 2)

while creating dataset

@SeemaManju
Copy link

I have the same issue

@psicobloc
Copy link

Hi! I had the same issue, I found a fix in SO
https://stackoverflow.com/questions/25504964/opencv-python-valueerror-too-many-values-to-unpack
It might be worth it to add this to master? if you want to try it just change
contours,hierarchy = cv2.findContours
to
auxvar,contours,hierarchy = cv2.findContours
in lines 137 and 206 (leafdetectionALLmix.py)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants