Algorithm 1 |
If(Hand is not empty) |
{ |
If ( |
sqrt (pow (frame. rotation Angle (last frame, x), 2)+ |
pow (frame. rotation Angle (last frame, y), 2)+ |
pow (frame. rotation Angle (last frame, z), 2)) |
>threshold1 |
or |
fingertip. velocity > threshold2 |
) |
Start collecting dynamic hand gestures |
Else |
Stop collecting dynamic hand gestures |
} |
Else |
Stop collecting dynamic hand gestures |