Created
May 22, 2014 03:00
-
-
Save mgng/82be2ae17d448f371664 to your computer and use it in GitHub Desktop.
Rekognition sample
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.ajax({ | |
url : "http://rekognition.com/func/api/", | |
data : { | |
api_key : "YOUR API KEY", | |
api_secret : "YOUR API SECRET", | |
jobs : "face_aggressive_gender_emotion_age_race", | |
urls : "http://livedoor.blogimg.jp/onsokuch/imgs/a/5/a561eb29.jpg" | |
}, | |
type : 'POST', | |
dataType: "json" | |
}).fail(function(json){ | |
console.log("error"); | |
}).done(function(json){ | |
console.log( JSON.stringify( json, null, " " ) ); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"url": "http://livedoor.blogimg.jp/onsokuch/imgs/a/5/a561eb29.jpg", | |
"face_detection": [ | |
{ | |
"boundingbox": { | |
"tl": { | |
"x": 246.22, | |
"y": 60.44 | |
}, | |
"size": { | |
"width": 155.56, | |
"height": 155.56 | |
} | |
}, | |
"confidence": 0.76, | |
"pose": { | |
"roll": -2.82, | |
"yaw": 28.54, | |
"pitch": 20.19 | |
}, | |
"race": { | |
"asian": 0.48 | |
}, | |
"emotion": { | |
"happy": 0.41, | |
"angry": 0.13, | |
"surprised": 0.01 | |
}, | |
"age": 47.03, | |
"smile": 0.97, | |
"sex": 0.49 | |
} | |
], | |
"ori_img_size": { | |
"width": 530, | |
"height": 800 | |
}, | |
"usage": { | |
"quota": 4987, | |
"status": "Succeed.", | |
"api_id": "YOUR_API_KEY" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment