Hi Everyone,
I'm working with the V2 Leap SDK for Python.
I'm writing a program which prints 'Left Hand' when the left hand is in frame and 'Right Hand' when the right hand is in frame. But, when both the hands are in frame I want to print 'Both Hands'.
But, when trying to do so I'm getting only Left Hand and Right Hand outputs one after the other.
This is my code:
if(hand.is_left):
leftHand = True;
print('Left Hand')
elif(hand.is_right):
rightHand = True;
print('Right Hand')
elif(leftHand == True and rightHand == True):
print('Both Hands!')
else:
leftHand = False;
rightHand = False;
Hope you could suggest what changes I could make.
Thank you!