Last active
November 9, 2015 06:16
-
-
Save kashitan/85139ffb3e8754d27bfb to your computer and use it in GitHub Desktop.
Detection API実行サンプル(JSON版)
This file contains 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
library(httr) | |
# ネット上の画像の場合はJSONでURLをPOST | |
res <- POST(url = 'https://api.projectoxford.ai/face/v0/detections', | |
query = list(analyzesFaceLandmarks=TRUE, | |
analyzesAge=TRUE, | |
analyzesGender=TRUE, | |
analyzesHeadPose=TRUE), | |
add_headers('Content-Type' = 'application/json', | |
'Ocp-Apim-Subscription-Key' = '[Subscription key]'), | |
body = '{ "url":"[画像のURL]" }' | |
) | |
content(res) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment