Vision-based gesture recognition as an interface to virtual environments