Recognition of human gestures and behaviour based on motion trajectories