More mhm info

This commit is contained in:
Ruben 2016-09-17 19:32:24 +01:00
parent 332467c939
commit 7d5719fd08

View file

@ -246,10 +246,10 @@ class ScoreControllerProvider implements ControllerProviderInterface
'inner_brow_raiser' => ["RightInnerBrowUp","LeftInnerBrowUp"],
'chin_raiser' => ["ChinForward"],
'smirk' => ["MouthLeftPullUp"],
'lip_suck' => ["UpperLipBackward","LowerLipBackward"],
'lip_suck' => ["UpperLipBackward","lowerLipBackward"],
'upper_lip_raiser' => ["UpperLipUp"],
'lip_pucker' => ["LipsKiss"],
'lip_pucker' => ["UpperLipForward","LowerLipForward"],
'lip_pucker' => ["UpperLipForward","lowerLipForward"],
'eye_closure' => ["RightUpperLidClosed","LeftUpperLidClosed"],
'engagement' => [],
'valence' => [],
@ -262,6 +262,12 @@ class ScoreControllerProvider implements ControllerProviderInterface
// <!-- platysma?? -->
];
$exprs = "";
foreach($hit->getExpressions()::$EXPRESSIONS as $expr) {
$exprs .= " $expr {$hit->getExpressions()->getExpressionScore($expr)}%.";
}
$data = [
"license" => "AGPL3",
"name" => "hit_{$hit->getId()}",