Skip to content

Instantly share code, notes, and snippets.

@kashitan kashitan/detection.R
Last active Nov 9, 2015

Embed
What would you like to do?
Detection API実行サンプル(JSON版)
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
You can’t perform that action at this time.