使用认知服务密钥(不是 Azure 帐户)拒绝 401 访问

401 access denied with cognitive-services keys (not azure account)

我想测试认知服务"face detect"

(不是 Azure 帐户)

https://westeurope.dev.cognitive.microsoft.com/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236/console

我所有的钥匙return401

抱歉我的英语不好:但是我哪里有错?

谨致问候

弗朗西斯

您获得的非 Azure 密钥适用于 westus 区域。因此,您有两个选择:

  • 使用westus API endpoint。这可能会对延迟产生影响,具体取决于您所在的位置以及图像所在的位置。

  • 创建基于 Azure 订阅的 Face API 帐户。当你这样做时,你将能够获得一把西欧 API 钥匙。