ravigithub19 / ai-virtual-mouse

Developed an AI-based system to control the mouse cursor using Python and OpenCV with the real-time camera. Fingertip location is mapped to RGB images to control the mouse cursor.
89 stars 45 forks source link

i got this error plz resolve it #7

Open MrRobotix opened 2 years ago

MrRobotix commented 2 years ago

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) [ WARN:0@6.883] global D:\a\opencv-python\opencv-python\opencv\modules\videoio\src\cap_msmf.cpp (539) `anonymous-namespace'::SourceReaderCB::~SourceReaderCB terminating async callback

whygauravvv commented 1 year ago

This error is solved here https://github.com/ravigithub19/ai-virtual-mouse/issues/5#issue-1071573245