This is some software that I made for the Flatland: The Game project. (complete documentation of that project is forthcoming) For now I’ll just say that it’s a field sport and each player has to carry a device to help them in the game. The device uses some sensors to realize it’s orientation, this software analyzes that sensor data and tries to match the movement to preset gestures.

Here how the gestures are guessed: