Toggle navigation
Toggle navigation
This project
Loading...
Sign in
임연수
/
FaceDetection
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
2
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
임연수
2018-12-14 04:28:03 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0c4f624743f9400c64e20d88840fe3be5895e575
0c4f6247
1 parent
3cf4d542
sparse emotion at facedetection.html
add accessories attributes
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
7 deletions
app.js
app/app.js
views/facedetection.html
app.js
View file @
0c4f624
...
...
@@ -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'
};
...
...
app/app.js
View file @
0c4f624
...
...
@@ -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
])
});
}
...
...
views/facedetection.html
View file @
0c4f624
...
...
@@ -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>
...
...
Please
register
or
login
to post a comment