facialExpressionSignatureType
This method can get or set the signature used by the facial expression detection.
The "universal" signature contains some generic parameters. It doesn't need (nor accept) any training. It is the default signature. Cortex uses it automatically when the profile doesn't contain any training.
The "trained" signature uses the training from the user. The profile must contain at least one training before you can switch to this signature.
Parameters
Name | Type | Required | Description |
cortexToken |
| yes | A token returned by authorize. |
status |
| yes | Must be "get" or "set". |
profile |
| no | The name of a profile. |
session |
| no | A session id returned by createSession. |
signature |
| no | If the status is "set", then this parameter must be "universal" or "trained". |
You must set one of these 2 parameters: profile or session. Read this for details.
Result
The result is an object containing these fields:
Name | Type | Description |
currentSig |
| The current signature used by the profile. Can be "universal" or "trained". |
availableSig |
| The signatures you can use with the profile. The "universal" one is always available, but the "trained" one requires some training. |
Examples
Get
Set
Last updated