Tracking hand gestures in real time