Model-Based Segmentation and Recognition of Continuous Gestures