|
@ -130,7 +130,10 @@ void ofApp::inferEmotionalState(){ |
|
|
croppedFaces[i] = tempImage; |
|
|
croppedFaces[i] = tempImage; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
Run batch for FER model, |
|
|
|
|
|
for each image -> set emotional state in detected_faces array |
|
|
|
|
|
*/ |
|
|
auto emotion_output_tensor = emotion.RunBatch(croppedFaces); |
|
|
auto emotion_output_tensor = emotion.RunBatch(croppedFaces); |
|
|
|
|
|
|
|
|
auto& output_tensor = emotion_output_tensor.front(); |
|
|
auto& output_tensor = emotion_output_tensor.front(); |
|
|