本文介绍了401访问被认知服务密钥(不是Azure帐户)拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想测试认知服务的面部检测"
I would like to test cognitive-services "face detect"
- 我在中创建了一个帐户: https://www.microsoft.com/cognitive-services/zh-CN/订阅和无脸征兆:好的,我有2个键
- I created an account in :https://www.microsoft.com/cognitive-services/en-US/subscriptionswithFace-Free soubscription :ok I have 2 keys
(不是天青帐户)
- 现在,我正在尝试在线进行API Face Detect测试:
我所有的键都返回401
All my keys return 401
对不起,我的英语不好:但是我有错吗?
Sorry for my bad english : but where I have false ?
最诚挚的问候
弗朗西斯
推荐答案
您获得的非天蓝色钥匙用于西区.因此,您有两种选择:
Your non-Azure key you've obtained is for the westus region. You therefore have two options:
-
使用 westus API端点.这可能会带来延迟的影响,具体取决于您所在的位置以及图像的位置.
Use the westus API endpoint. This may have latency implications depending on where you are, and where your images are located.
基于Azure订阅创建Face API帐户.当您这样做时,您将能够获得一个westeurope API密钥.
Create a Face API account based on an Azure subscription. When you do so, you will be able to obtain a westeurope API key.
这篇关于401访问被认知服务密钥(不是Azure帐户)拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!