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

find contours error #1

Open
MinSoo97 opened this issue Mar 6, 2021 · 1 comment
Open

find contours error #1

MinSoo97 opened this issue Mar 6, 2021 · 1 comment

Comments

@MinSoo97
Copy link

MinSoo97 commented Mar 6, 2021

ValueError Traceback (most recent call last)
in
----> 1 _, contours, _ = cv2.findContours(
2 img_thresh,
3 mode=cv2.RETR_LIST,
4 method=cv2.CHAIN_APPROX_SIMPLE
5 )

ValueError: not enough values to unpack (expected 3, got 2)

벨류 에러가 뜨는데 어떤게 문제인지 찾지를 못할거 같아요 ㅠㅠ

@MinSoo97
Copy link
Author

MinSoo97 commented Mar 6, 2021

앗 open cv 4로 다운받으면 오류가 뜬다고 하네요
,contours, 이부분을 contours,hierarchy 으로 바꿔주면 해결 됩니다!

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

1 participant