Guest User

Untitled

a guest
Oct 19th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. Param(
  2. [string]$Url
  3. )
  4.  
  5. $subscriptionKey = "$env:COG_FACE_SUBSCRIPTIONKEY"
  6. $endPoint = "$env:COG_FACE_ENDPOINT"
  7.  
  8. $json = @"
  9. {\"url\":\"$Url\"}
  10. "@
  11.  
  12. curl "$endPoint/detect?returnFaceId=true&returnFaceLandmarks=false&returnFaceAttributes=age,gender" `
  13. -H "Content-Type: application/json" `
  14. -H "Ocp-Apim-Subscription-Key: $subscriptionKey" `
  15. -d $json `
  16. --trace-ascii trace.log
Add Comment
Please, Sign In to add comment