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

ValueError: not enough values to unpack #4

Open
plysytsya opened this issue May 24, 2019 · 2 comments
Open

ValueError: not enough values to unpack #4

plysytsya opened this issue May 24, 2019 · 2 comments

Comments

@plysytsya
Copy link

I get the following error when I try to run the script:

Traceback (most recent call last):
File "main.py", line 276, in
contr_img, contours, hierarchy = cv2.findContours(contr_retrival,cv2.RETR_EXTERNAL,cv2.CHAIN_APPROX_SIMPLE)
ValueError: not enough values to unpack (expected 3, got 2)

@plysytsya
Copy link
Author

Fixed it by downgrading to opencv version 3.4.3.18

@Designer-ViditShah
Copy link

You may also do it by removing the first argument since it's not used later anywhere in the code.
Argument name "contr_img"
Remove the argument and code works fine

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

2 participants