A computing device (100, 200) for identifying a gesture performed by a tracked object (H, H', O1, O2) in an image stream, said computing device (100, 200) comprising a memory and a controller, wherein said controller is configured to: determine a movement vector for the tracked object (H, H', O1, O2) wherein said movement vector comprises at least two partial movements each having a direction being identified by a detected angle (α), determine a current orientation by comparing a structure of the tracked object (H, H', O1, O2) with a predetermined model structure for said object (H, H', O1, O2); determine an offset value by comparing the current orientation of the object (H, H', O1, O2) to a predetermined general orientation; adapting the movement vector by adding the offset value to all detected angles thereby obtaining adapted angles; compare the movement vector against a reference library of gestures, wherein said comparison is based on said adapted angles; and thereby identify a gesture matching the movement vector, wherein the identification of a gesture is performed by said controller being configured to traverse a state diagram, such as a Turing machine (1800, 1900, 2000, 2200), wherein a transition corresponds to an element of said movement vector and at least one state corresponds to an action corresponding to an assumed gesture; whereby the controller executes a transition from a state to another according to elements of the movement vector until a gesture is identified by reaching the corresponding state, wherein said controller is further configured to preemptively execute an action corresponding to an assumed gesture as said gesture is being detected, wherein the controller is configured to assume that the gesture being detected is an assumed gesture if the state of the state diagram currently being visited is on a transition path to said gesture to be detected. determine a movement vector for the tracked object (H, H', O1, O2) wherein said movement vector comprises at least two partial movements each having a direction being identified by a detected angle (α), determine a current orientation by comparing a structure of the tracked object (H, H', O1, O2) with a predetermined model structure for said object (H, H', O1, O2); determine an offset value by comparing the current orientation of the object (H, H', O1, O2) to a predetermined general orientation; adapting the movement vector by adding the offset value to all detected angles thereby obtaining adapted angles; compare the movement vector against a reference library of gestures, wherein said comparison is based on said adapted angles; and thereby identify a gesture matching the movement vector, wherein the identification of a gesture is performed by said controller being configured to traverse a state diagram, such as a Turing machine (1800, 1900, 2000, 2200), wherein a transition corresponds to an element of said movement vector and at least one state corresponds to an action corresponding to an assumed gesture; whereby the controller executes a transition from a state to another according to elements of the movement vector until a gesture is identified by reaching the corresponding state, wherein said controller is further configured to preemptively execute an action corresponding to an assumed gesture as said gesture is being detected, wherein the controller is configured to assume that the gesture being detected is an assumed gesture if the state of the state diagram currently being visited is on a transition path to said gesture to be detected.