37
SLN-VIZNAS-IOT User Guide, Rev. 1.1, 10/2020
NXP Semiconductors
3.2.13
Configure Emotion Recognition
The SLN-VIZNAS-IOT kit supports emotion recognition in addition to face recognition.
This feature comes disabled by default and needs to be enabled via serial commands.
Once connected to the kit via serial, use the command
“emotion 0”, “emotion 2”,
“emotion 4”,
or
“emotion 7.”
SHELL>> emotion 4
SHELL>> 4 types emotion recognition is set, system will reset
Figure 54: "emotion 4" Command Success Output
Running the
“emotion”
command will enable the recognition of the emotions shown in
the table below.
Emotion
“emotion 2”
“emotion 4”
“emotion 7”
Neutral
X
X
X
Happy
X
X
X
Angry
X
X
Surprised
X
X
Sad
X
Fear
X
Disgust
X
Accuracy
92%
81%
62%
Table 9: Emotion Recognition Configuration Table
When a
user’s emotion is recognized, the kit will display a message which will indicate
the detected emotion. If a user
smiles, the text “Happy” will be shown in the upper right-
hand corner of the bounding box*.
*Note: Detected emotion will only be shown through verbose mode when the app type is not the
UserID app type. For more info on app types/configurations see App Configurations.