Import cv2
from cvzone.HandTracking module import HandDetector
Cap=cv2.videoCapture(0)
Detectector=HandDetector (detectioncon=1,maxHands=2)
While True:
Success,img=cap.read()
hands,img=detector.findHands(img)
Lmlist, bbox =detector.fingPosition(img)
If lmlist:
fingers=detector.fingersUp()
# Print (fingers)
T=fingers[2]
A=finger[3]
M=fingers[4]
R=fingers[5]
L=fingers[6]
Cv2.imshow("roeye",img)
Comments
Post a Comment