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