【发布时间】:2019-02-19 18:45:16
【问题描述】:
我尝试使用 Roxford 包连接 Azure 认知服务。由于错误的端点,我得到了错误(在将牛津项目包括到 Azure 服务中之后,有几个特定于区域的端点)。
我从 Azure 认知服务项目的个人帐户中获得了密钥:
library(Roxford)
library(plyr)
library(rjson)
facekey <- "xxx" #look it up on your subscription site
getFaceResponseURL("http://getwallpapers.com/wallpaper/full/5/6/4/1147292-new-women-faces-wallpaper-2880x1800-for-phone.jpg",key= facekey)
#I got error
# {"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."}}
如何将端点更改为:“https://westcentralus.api.cognitive.microsoft.com/face/v1.0”???
【问题讨论】:
标签: r azure api azure-cognitive-services rjson