I came across an awesome article on simple gesture recognition.
This page implements a “$1 Gesture Recognizer” that is easy, cheap, and usable almost anywhere. It requires under 100 lines of easy code and achieves 97% recognition rates with only one template defined for each gesture below. With 3+ templates defined, accuracy exceeds 99%. //depts.washington.edu/aimgroup/proj/dollar/