Skip to content

Instantly share code, notes, and snippets.

@kashitan
Last active November 20, 2015 11:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kashitan/bfb1e42bae2a521e69a1 to your computer and use it in GitHub Desktop.
Save kashitan/bfb1e42bae2a521e69a1 to your computer and use it in GitHub Desktop.
FindSimilarFaces APIのサンプル
library(httr)
res <- POST(url = 'https://api.projectoxford.ai/face/v0/findsimilars',
add_headers('Content-Type' = 'application/json',
'Ocp-Apim-Subscription-Key' = '[Subscription key]'),
body = '{
"faceId":"[比較元のFace ID]",
"faceIds": [
"[比較先のFace ID]",
"[比較先のFace ID]",
...
"[比較先のFace ID]"
]
}'
)
content(res)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment