gr_recognition_get_name

Syntax:

gr_recognition_get_name(result, [index]);
Argument name Type Description
result Result The recognition result object
index integer The index of the recognition starting from zero

Returns: (string) The gesture template name of the result with the specified index

Description:

Returns the name of the recognized pattern gesture for that recognition result with the specified index. For example, to get the name of the most similar pattern acording to the recognition results you can use var name = gr_recognition_get_name(result, 0);. To get the second most similar pattern, use 1, and so on. The index must be between ´0´ and ´gr_recognition_get_number(recognition) - 1´, and they are ordered by the accuracy.

If you don't specify the index, then the index 0 (the most accurate result) is assumed.