임연수

sparse emotion at facedetection.html

add accessories attributes
......@@ -36,7 +36,7 @@ var uriBase = 'https://eastasia.api.cognitive.microsoft.com/face/v1.0/detect';
var params = {
'returnFaceId': 'true',
'returnFaceLandmarks': 'false',
'returnFaceAttributes': 'age,gender,emotion,hair'
'returnFaceAttributes': 'age,gender,emotion,hair,accessories'
//'headPose,smile,facialHair,glasses, emotion,hair,makeup,occlusion,accessories,blur,exposure,noise'
};
......
......@@ -10,10 +10,6 @@ mainApp.controller('mainAdminController', ['$scope', '$http',
})
.then(function (response) {
$scope.data = response.data;
$scope.age = response.data[0].faceAttributes.age;
$scope.emotion = response.data[0].faceAttributes.emotion;
$scope.gender = response.data[0].faceAttributes.gender;
$scope.hair = response.data[0].faceAttributes.hair.bald;
console.log(response.data[0])
});
}
......
......@@ -25,10 +25,19 @@
<div class="right-box">
<div ng-repeat="row in data">
<p>age : {{ row.faceAttributes.age }}</p>
<p>emotion : {{ row.faceAttributes.emotion }}</p>
<p>gender : {{ row.faceAttributes.gender }}</p>
<p>age : {{ row.faceAttributes.age }}</p>
<p>emotion : </p>
<p><br>anger : {{ row.faceAttributes.emotion.anger }}</p>
<p><br>contempt : {{ row.faceAttributes.emotion.contempt }}</p>
<p><br>disgust : {{ row.faceAttributes.emotion.disgust }}</p>
<p><br>fear : {{ row.faceAttributes.emotion.fear }}</p>
<p><br>happiness : {{ row.faceAttributes.emotion.happiness }}</p>
<p><br>neutral : {{ row.faceAttributes.emotion.neutral }}</p>
<p><br>sadness : {{ row.faceAttributes.emotion.sadness }}</p>
<p><br>surprise : {{ row.faceAttributes.emotion.surprise }}</p>
<p>bald : {{ row.faceAttributes.hair.bald }}</p>
<p>accessories : {{ row.accessories}}</p>
</div>
</div>
......