Real-Time Static Gesture Recognition for Upper Extremity Rehabilitation Using the Leap Motion