Skip to content
This repository has been archived by the owner on Mar 17, 2020. It is now read-only.

not enough values to unpack (expected 3, got 2) #1

Open
DilaraAlbayrak opened this issue Feb 22, 2019 · 6 comments
Open

not enough values to unpack (expected 3, got 2) #1

DilaraAlbayrak opened this issue Feb 22, 2019 · 6 comments
Labels
question Further information is requested

Comments

@DilaraAlbayrak
Copy link

Hi, I provide color as described here. After that I press a key but get (continuously)

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

error. How can I fix this?

@BlueDi BlueDi added the question Further information is requested label Feb 22, 2019
@BlueDi
Copy link
Owner

BlueDi commented Feb 22, 2019

I'm not able to reproduce the error that you found.

I've corrected the indentation on the documentation.

What is your OS?
Are you using a virtual machine or is it main OS?

@DilaraAlbayrak
Copy link
Author

Ubuntu 16.04, main OS

@BlueDi
Copy link
Owner

BlueDi commented Feb 25, 2019

I don't think the problem is there then.

@DilaraSina Can you tell me the line where the code is breaking?

@DilaraAlbayrak
Copy link
Author

Thanks for your interest, I am not competent with python, I run the script on Terminal, I have press 'v', then my color skin is recorded. After that I press a key and get titled error, does it help or do I need to perform a debugging?

BlueDi added a commit that referenced this issue Feb 25, 2019
As stated in issue #1, the findCountrs is throwing a errorin the new versions of opencv. To handle this error created an if to handle the opencv version in use.
BlueDi added a commit that referenced this issue Feb 25, 2019
As stated in issue #1, the findCountrs is throwing a errorin the new versions of opencv. To handle this error created an if to handle the opencv version in use.
BlueDi added a commit that referenced this issue Feb 25, 2019
As stated in issue #1, the findContours is throwing a error in the new versions of opencv. To handle this error created an if to handle the opencv version in use.
@BlueDi
Copy link
Owner

BlueDi commented Feb 25, 2019

@DilaraSina As I am not able to reproduce the bug is hard for me to help you correct my code.

I think the problem is that findContours was updated in OpenCV 4. I'm still using OpenCV 3.

Please check if the changes made in branch issue1 correct the problem on your side.

@NguyenDangBinh
Copy link

dear,
I think you should install
pip install opencv-contrib-python

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants