找不到Microsoft认知服务的订阅密钥 [英] Unable to find Subscription Key for Microsoft Cognitive Services

查看:680
本文介绍了找不到Microsoft认知服务的订阅密钥的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要研究Microsoft认知服务(Face API).我从 https://github.com/Microsoft/Cognitive-face-android.现在,我无法为其生成订阅密钥. 不管我做什么,我都会陷在此页面中

I need to work on Microsoft Cognitive Services (Face API). I downloaded the code from https://github.com/Microsoft/Cognitive-face-android. Now I am unable to generate the Subscription Key for it. No matter whatever I do I get stuck in this page

在其他地方我可以找到订阅密钥. 谢谢

From where else I can find the Subscription Key. Thanks

推荐答案

您正在使用的接口用于测试目的.因此,它的使用时间不应超过一个月.

以下是您以正确方式生成API密钥的方法:

较新的编辑:自编写本指南以来,Azure界面已更改.它并没有太大的变化,所以如果本指南不对,请给我留下评论.
我看到的最大变化是,现在可以使用A部分/步骤3中显示的"+新建"表单直接找到 Bing Search API.(也就是不要搜索认知服务" )

The interface you are using is for testing-purposes. Consequently, it is not meant to be used for more than a month.

Here's how you can generate an API key the proper way:

Newer The Azure interface has changed since this guide was written. It hasn't changed that much, so leave me a comment if this guide is broken.
The largest change I have seen is that Bing Search API can now be located directly using the "+ New" form shown in Part A/Step 3. (aka, don't search for "cognitive services")

现在中途还有另一份文档,标题为"B部分:":通过Azure为现收现付添加信用卡门户网站." 如果您尚未 在portal.azure.com上设置付款方式,则停留在A部分/第5步.
过程.

There is now another piece of documentation half-way down entitled "Part B: Adding a Credit Card for Pay-As-You-Go via the Azure Portal." If you have not already set up your payment method on portal.azure.com, you will get stuck at Part A/step 5.
process.

  1. 转到 https://portal.azure.com 并使用您的凭据登录.
  2. (可选)检查并确保您具有活动的即付即用(PAYG)订阅.单击更多服务"箭头,然后在显示的表单中键入订阅.单击进入订阅",并确保您在此处看到一个条目.**
  3. 如果您确定自己拥有有效的PAYG帐户,请确保您在仪表板上,然后按绿色的" + 新建"按钮,然后开始键入认知服务.完成输入后,它应该是唯一的选择.
  4. 点击认知服务API"建议后,您将进入下一页.单击绿色的大脑.
  5. 系统将为您提供认知服务的描述,并在底部看到一个创建按钮.按下.
  6. 将弹出创建"窗格.填写. 首先检查控制台面板上的PIN码,这样您就不会忘记(注意:如果您没有拥有有效的PAYG订阅,则会看到错误,而不是创建"下方的图片的右侧窗格中.)
  7. 当您按下上图的绿色爆炸时,您将看到以下图标:
  1. Go to https://portal.azure.com and sign in with your credentials.
  2. (Optional) Check to make sure you have an active Pay-As-You-Go(PAYG) subscription. Click the "More services" arrow and type subscriptions into the form that appears. Click into Subscriptions and make sure you see an entry here.**
  3. If you're sure you have an active PAYG acct, make sure you're on the dashboard and press the green "+ New" button and start to type Cognitive Services. As you finish typing it should be your only option.
  4. Once you've clicked the "Cognitive Services APIs" suggestion you will be brought to the following page. Click the green brain.
  5. You'll be given a description of Cognitive services and you'll see a create button at the bottom. Press that.
  6. The "Create" pane will pop up. Fill this out. CHECK THE PIN TO DASHBOARD BOX FIRST SO YOU DON'T FORGET (Note: If you do not have an active PAYG subscription you will see an error instead of the "Create" pane on the right-side of the image below.)
  7. When you press the green-explosion from the picture above you will see the following icon:

这就是您想要的.完成上一张图片的表单后,请按固定到仪表板"框下方的创建".

This is what you want. When you've completed the form from the previous picture, press "Create" below the "pin to dashboard" box.

  1. 成功创建订阅后,您会收到一条消息,提示您已验证所有内容并且正在部署服务.您现在应该在仪表板上,并且如果将别针固定到仪表板上,应该会看到一个小的细分框.很快,它将完成并变通!您将看到与下图类似的内容.按下新服务上的键"按钮.
  1. When you've created the subscription successfully, you'll get a little message that things are validated and your service is deploying. You should be on the dashboard now and should see a little tessellating box if you pressed pin to dashboard. Soon it will be complete and vuala!You'll see something similar to the following image. Press the "keys" button on your new service.

** 如果系统提示您您没有任何有效的订阅",则需要单击白色的"Add +"按钮并创建一个PAYG订阅.此步骤将需要信用卡和非VoIP电话.

如果您之前从未使用过portal.azure.com和/或没有有效的付款订阅,则此过程的一部分是必需的.

  1. 对于此过程,您将需要:有效的信用卡**,用于人工验证的非语音电话,对于最低的API层,> = $ 3 USD.

  1. For this process you will need: A valid credit-card**, a non-voip telephone for human-verification, >= $3 USD for the lowest API tier.

避免潜在的头痛;这些步骤请勿使用GOOGLE CHROME..如果您使用的是Windows 10计算机,请在InPrivate模式下使用Edge作为浏览器.否则,firefox私人浏览是一个不错的选择.

TO AVOID POTENTIAL HEADACHES; DO NOT USE GOOGLE CHROME FOR THESE STEPS. If you are on a Windows 10 Machine use Edge in InPrivate mode as your browser. Otherwise, firefox private-browsing is a decent alternative.

按照步骤1& 2从上面的指南导航到 Subscriptions 窗格.在带圆圈的"+添加"按钮下,您应该看到一条消息,告诉您"xxxxx(默认目录)目录中没有订阅." 单击"+添加"按钮.

Follow steps 1 & 2 from the guide above to navigate to the Subscriptions pane. Underneath the circled "+ Add" button, you should see a message telling you there are "No subscriptions in xxxxx(Default Diretory) directory." Click the "+ Add" button.

您将被带到URL

如上图所示.选择现收现付(PAYG),除非您不想使用指南.您将被带到这里&将需要填写3个部分. 在此过程中不会向您的卡收费.

As the picture above indicates. Select Pay-as-you-go (PAYG) unless you want to go off-guide. You'll be brought here & will need to fill out the 3 sections. Your card won't be charged during this process.

完成上图所示的3个步骤后,您将进入一个页面,要求您在订阅准备就绪时等待约4分钟&您会看到旋转半圆的有趣小动画.最终,您将看到一个标记为开始管理我的服务"的按钮.,它将带您回到portal.azure.com上的仪表板.

Once you complete the 3 steps denoted in the image above, you'll be taken to a page which asks you to wait for ~4 mins while your subscription is getting ready & you'll see that fun little animation of spinning half-circles. Eventually you'll be presented with a button which is labeled "Start Managing my Services. Which will take you back to the dashboard at portal.azure.com.

在仪表板上,再次找到订阅"窗格,这一次您应该看到与以下内容类似的内容.

From the dashboard, Find the "Subscriptions" pane again, and this time you should see something similar to the following.

您现在有了一种购买API订阅的付款方式.在这里,您可以从创建API端点&的第3步继续进行.

You now have a payment method with which to purchase your API subscription. From here you can resume at Step 3 of Creating an API Endpoint & Accessing Your Keys aka the first half of this guide.

** 您的信用卡必须在创建您的Microsoft用户名/密码组合的国家中有一个帐单邮寄地址.

** Your credit-card must have a billing address located in the country which your Microsoft username/password combo was created in.

这篇关于找不到Microsoft认知服务的订阅密钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆