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

object-detection-tracking-opencv-python :Not Enough Values to Unpack #1

Open
vismodo opened this issue Sep 25, 2020 · 0 comments
Open

Comments

@vismodo
Copy link

vismodo commented Sep 25, 2020

Hey There, Mark!

I executed your code for object detection a couple minutes ago and I found an error regarding line 76.

im2, contours, hierarchy = cv2.findContours(mask, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)

The problem is arguments given, since it says that the values given are not enough to unpack. Python says that there are 3 values needed, but only two were specified. Here is the callback:

Traceback (most recent call last):
  File "path\to\python\file.py", line 76, in <module>
    im2, contours, hierarchy = cv2.findContours(mask, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)
ValueError: not enough values to unpack (expected 3, got 2)

Hope you can fix it! Good luck in advance!

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