【发布时间】:2017-06-26 16:35:36
【问题描述】:
我在使用 Microsoft Face API 时遇到问题。以下是我的示例请求:
curl -v -X POST "https://westus.api.cognitive.microsoft.com/face/v1.0/detect?returnFaceId=true&returnFaceLandmarks=false&returnFaceAttributes=age,gender" -H "Content-Type: application/json" -H "Ocp-Apim-Subscription-Key: 1xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxd" --data-ascii "{\"url\":\"http://www.mrbeantvseries.co.uk/bean3.jpg\"}"
我使用认知服务帐户中的订阅 ID 并收到以下响应:
{
"error": {
"code": "Unspecified",
"message": "Access denied due to invalid subscription key. Make sure you are subscribed to an API you are trying to call and provide the right key."
}
}
不确定我是否错过了那里的任何东西。有人可以帮我吗?非常感谢。
【问题讨论】:
-
您可能需要检查此项以确保您传递正确的密钥 - Where to find my Ocp-Apim-Subscription-Key in Windows azure
标签: face-detection microsoft-cognitive face-api