Hand-Detection icon indicating copy to clipboard operation
Hand-Detection copied to clipboard

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

Open DilaraAlbayrak opened this issue 6 years ago • 6 comments

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?

DilaraAlbayrak avatar Feb 22 '19 12:02 DilaraAlbayrak

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?

BlueDi avatar Feb 22 '19 15:02 BlueDi

Ubuntu 16.04, main OS

DilaraAlbayrak avatar Feb 25 '19 07:02 DilaraAlbayrak

I don't think the problem is there then.

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

BlueDi avatar Feb 25 '19 10:02 BlueDi

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?

DilaraAlbayrak avatar Feb 25 '19 12:02 DilaraAlbayrak

@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.

BlueDi avatar Feb 25 '19 15:02 BlueDi

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

NguyenDangBinh avatar Aug 21 '19 02:08 NguyenDangBinh