Traceback (most recent call last):
File “E:\emxaple\Python\VirtalDragImages\main.py”, line 46, in
length, info, img = detector.findDistance(lmList[8], lmList[12], img)
File “E:\emxaple\Python\VirtalDragImages\venv\lib\site-packages\cvzone\HandTrackingModule.py”, line 146, in findDistance
x1, y1 = p1
ValueError: too many values to unpack (expected 2)
将
length, info, img = detector.findDistance(lmList[8], lmList[12], img)
改成
length, info, img = detector.findDistance(lmList[8][0:2], lmList[12][0:2], img)