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 (expected 3, got 2) #79

Open
shqmffl486 opened this issue Nov 21, 2022 · 1 comment
Open

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

shqmffl486 opened this issue Nov 21, 2022 · 1 comment

Comments

@shqmffl486
Copy link

Lamp is assigned class label 0.
0%| | 0/1199 [00:00<?, ?it/s]
Traceback (most recent call last):
File "create_label_files.py", line 155, in
cv2.CHAIN_APPROX_SIMPLE)
ValueError: not enough values to unpack (expected 3, got 2)

how can i do? help me!

@Divyam10
Copy link

@shqmffl486
Change

  _,  contours, _ = cv2.findContours(thresh.copy(), cv2.RETR_EXTERNAL,
                                              cv2.CHAIN_APPROX_SIMPLE)

to


contours, _ = cv2.findContours(thresh.copy(), cv2.RETR_EXTERNAL,
                                              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