Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Param(
- [string]$Url
- )
- $subscriptionKey = "$env:COG_FACE_SUBSCRIPTIONKEY"
- $endPoint = "$env:COG_FACE_ENDPOINT"
- $json = @"
- {\"url\":\"$Url\"}
- "@
- curl "$endPoint/detect?returnFaceId=true&returnFaceLandmarks=false&returnFaceAttributes=age,gender" `
- -H "Content-Type: application/json" `
- -H "Ocp-Apim-Subscription-Key: $subscriptionKey" `
- -d $json `
- --trace-ascii trace.log
Add Comment
Please, Sign In to add comment