A non-transitory computer readable medium comprising a computer program for performing, when the computer program is run on a computer, a method for recognizing gestures in a picture, said method comprising:
- performing at least one Hough transform for identifying arcs in the picture or in a pre-processed version of the picture as identified gesture elements so as to acquire information about the identified gesture elements,
- and to identify a plurality of straight-line segments extending through the picture in various directions as identified gesture elements to provide information about a location, a length or a direction of an identified straight-line segment;
- creating a gesture description while using the information about the identified gesture elements,
- so that the gesture description describes the gesture as an ordered listing of parameters of identified gesture elements,
- the information about the identified straight-line segments that is provided by the Hough transform being used for creating the gesture description;
- and
- comparing the gesture description to a plurality of comparative gesture descriptions having gesture codes associated with them so as to provide a gesture code of a recognized gesture as the result of the comparison.