A Deep Learning Framework for Recognizing Both Static and Dynamic Gestures