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: not enough values to unpack (expected 3, got 2) #9

Open
YrgkenKoutsi opened this issue Mar 16, 2020 · 1 comment
Open

Error: not enough values to unpack (expected 3, got 2) #9

YrgkenKoutsi opened this issue Mar 16, 2020 · 1 comment

Comments

@YrgkenKoutsi
Copy link

Hello, i'm getting the error below when running bloodvessel.py, any solution behind this?

Traceback (most recent call last): File "bloodvessels.py", line 62, in <module> bloodvessel = extract_bv(fundus) File "bloodvessels.py", line 25, in extract_bv im2, contours, hierarchy = cv2.findContours(f6.copy(),cv2.RETR_LIST,cv2.CHAIN_APPROX_SIMPLE) ValueError: not enough values to unpack (expected 3, got 2)

@NerijaK
Copy link

NerijaK commented May 23, 2020

The line should look smth like this (2 arguments, not 3):
contours, hierarchy = cv2.findContours(f6.copy(),cv2.RETR_LIST,cv2.CHAIN_APPROX_SIMPLE)

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