Virtual-Mouse-Using-Gesture-Recognition icon indicating copy to clipboard operation
Virtual-Mouse-Using-Gesture-Recognition copied to clipboard

Error while running

Open Ankit3600P opened this issue 5 years ago • 2 comments

File "D:/Python/gesture controlled mouse/Virtual_mouse.py", line 44, in im2,conts,h=cv2.findContours(final_mask,cv2.RETR_EXTERNAL,cv2.CHAIN_APPROX_NONE) ValueError: not enough values to unpack (expected 3, got 2)

Ankit3600P avatar Jul 26 '20 13:07 Ankit3600P

Hello,

The error you're getting is because you install the latest version of opencv. Uninstall the current version of your opencv and install an oldest version. I tried myself and i get the same error. This version works fine:

pip install opencv-python==3.4.11.39

geraldhoxha avatar Aug 12 '20 22:08 geraldhoxha

yea, that works

TheHackerClown avatar Jun 20 '21 13:06 TheHackerClown