Hand_detection_tracking_opencv-
Hand_detection_tracking_opencv- copied to clipboard
Got 3 expected 2
Traceback (most recent call last):
File "c:\Users\vayuy\Downloads\Hand_detection_tracking_opencv--master\Hand_detection_tracking_opencv--master\hand_detection_tracking.py", line 44, in
_, conts, h = cv2.findContours(maskClose, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_NONE)
ValueError: not enough values to unpack (expected 3, got 2)
_, conts, h = cv2.findContours(maskClose, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_NONE)
Remove _ from the line; the result should be this.
conts, h = cv2.findContours(maskClose, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_NONE)