arrow-left

All pages
gitbookPowered by GitBook
1 of 1

Loading...

getTrainedSignatureActions

This method returns the list of the trained actions of a profile. For each action, you also see how many times the user trained this action.

hashtag
Parameters

Name

Type

Required

You must set one of these 2 parameters: profile or session. for details.

If you set the session, then this method reads information from the profile that is currently loaded for the headset of this session.

If you set profile then this method reads information from the hard drive. The values you get can be different from reading from the session, especially if the profile was load, edited, and not saved yet.

hashtag
Result

The result is an object containing these fields:

The objects in trainedActions have 2 fields:

hashtag
Examples

Description

cortexToken

string

yes

A token returned by .

detection

string

yes

Must be "mentalCommand" or "facialExpression".

profile

string

no

The name of a profile.

session

string

no

A session id returned by .

Name

Type

Description

trainedActions

array of objects

Contains 1 object for each trained action.

totalTimesTraining

number

The total number of training the user did since the creation of this profile.

Name

Type

Description

action

string

The name of the action.

times

number

How many times the user trained this action.

Read this
{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "getTrainedSignatureActions",
    "params": {
        "cortexToken": "xxx",
        "detection": "mentalCommand",
        "profile": "cortex-v2-example"
    }
}
{
    "id": 1,
    "jsonrpc": "2.0",
    "result": {
        "totalTimesTraining": 12,
        "trainedActions": [
            {
                "action": "neutral",
                "times": 1
            },
            {
                "action": "push",
                "times": 1
            },
            {
                "action": "pull",
                "times": 1
            }
        ]
    }
}
authorize
createSession