facialExpressionThreshold
This method can get or set the threshold of a facial expression action for a specific profile.
Actions with a low threshold are less likely to be detected. Actions with a high threshold will be detected more often.
Parameters
Name | Type | Required | Description |
cortexToken |
| yes | A token returned by authorize. |
status |
| yes | Must be "get" or "set". |
action |
| yes | You get or set the threshold for this action. |
profile |
| no | A profile name. |
session |
| no | A session id returned by createSession. |
value |
| no | If the status is "set", this parameter must be a number between 0 and 1000. This will be the new threshold of the action. |
You must set one of these 2 parameters: profile or session. Read this for details.
Result
If the status is "get", then the result is a number
that is the current threshold of the action.
If the status is "set", then the result is a string
that is a success message.
Examples
Get
Set
Last updated