gr_template_add

Syntax:

gr_template_add(name, data_type, points_data);
Argument name Type Description
name string The name of the gesture. You can create multiple gestures with the same name.
data_type string A string that specify the type of data provided in points_data argument. It can be "path", "array_path", "array_points", "array_raw", "list_points" or "list_raw". Check gr_gesture_create to know more.
points_data array|list|path The data that will be determinate the points of the path.

Returns: (Gesture) The new created gesture

Description:

Creates and adds a gesture to the Recognition system as a template gesture. Check gr_gesture_create to know more about the arguments.