Realization of Hidden Markov Model for gesture recognition on Java. Based on GRT