gr_recognition_get_accuracy

Syntax:

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

Returns: (real) The accuracy of the result with the specified index

Description:

Returns the accuracy (as a real from 0.00 to 1.00) of the recognized pattern gesture for that recognition result with the specified index. For example, to get the accuracy of the most similar pattern acording to the recognition results you can use var accuracy = gr_recognition_get_accuracy(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.