mahaveerverma / hand-gesture-recognition-opencv

A project on hand detection and hand gesture recognition developed using OpenCV on Python 2.7.
MIT License
315 stars 132 forks source link

can not understand #16

Open scutcr7 opened 5 years ago

scutcr7 commented 5 years ago

if(first_iteration): finger_ct_history[0]=finger_ct_history[1]=len(finger) first_iteration=False else: finger_ct_history[0]=0.34*(finger_ct_history[0]+finger_ct_history[1]+len(finger))

if((finger_ct_history[0]-int(finger_ct_history[0]))>0.8):
    finger_count=int(finger_ct_history[0])+1
else:
    finger_count=int(finger_ct_history[0])

finger_ct_history[1]=len(finger)

I'm really confused ,what do the above lines do?