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

跟風遠走 提交于 2019-12-13 00:36:54

问题


I would like to test cognitive-services "face detect"

  • I created an account in : https://www.microsoft.com/cognitive-services/en-US/subscriptions with Face-Free soubscription : ok I have 2 keys

(not azure account)

  • now, I am trying to test in API Face Detect online :

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

All my keys return 401

Sorry for my bad english : but where I have false ?

With best regards

Francis


回答1:


Your non-Azure key you've obtained is for the westus region. You therefore have two options:

  • Use the westus API endpoint. This may have latency implications depending on where you are, and where your images are located.

  • Create a Face API account based on an Azure subscription. When you do so, you will be able to obtain a westeurope API key.



来源:https://stackoverflow.com/questions/43744197/401-access-denied-with-cognitive-services-keys-not-azure-account

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!