Commit 9a86df43 authored by Adrien Dorsaz's avatar Adrien Dorsaz

Clear arousal/valence sets after end of emotion capture to be able to compute it again.

parent c7d3c67d
......@@ -68,6 +68,12 @@ void Emotions::arousalValence(double arousal, double valence){
curArousal = _arousalClassifier->classify(_arousalSet);
curValence = _valenceClassifier->classify(_valenceSet);
emit giveEmotion(QVariant(curArousal+" "+curValence));
_sizeSet=0;
_arousalSet->clear();
_valenceSet->clear();
}else{
insertValue(_arousalSet, arousal);
insertValue(_valenceSet, valence);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment