牛津计划:401未经授权的错误 [英] Project Oxford: 401 Unauthorized Error

查看:88
本文介绍了牛津计划:401未经授权的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好。我是Heejong Ahn,现在在韩国Naver Labs工作。

Hi. I'm Heejong Ahn and currently working at Naver Labs, South Korea as a intern.

为了对我们的OCR引擎进行基准测试并将其与其他引擎进行比较,我厌倦了访问Project Oxford的OCR引擎。

To benchmark our OCR engine and compare it to other engines, I tired to access OCR engine of Project Oxford.

我做了一个免费试用Azure帐户并通过Python请求发送了请求,但是我得到了401错误。

I made a free trial Azure account and sent request via Python requests libray, but I got 401 Error.

我做错了什么,或使用免费试用版无法访问Project Oxford吗?

Did I do something wrong, or is Project Oxford inaccessible using Free trial?

我的HTTP请求:

r =请求。 post('https://api.projectoxford.ai/vision/v1/ocr',data = {'Url':" http://contoso.com/images/test1.jpg"},headers = h)

r = requests.post('https://api.projectoxford.ai/vision/v1/ocr', data={'Url': "http://contoso.com/images/test1.jpg"}, headers=h)

其中

h = {'Ocp-Apim-Subscription-Key':我的订阅密钥(每个8-4-4-4-12位) )}

h = {'Ocp-Apim-Subscription-Key': my subscription key(8-4-4-4-12 digits each)}

提前谢谢。

推荐答案

 

Hi, 

帖子网址应该是这样的 

The post url should be like this 

https://api.projectoxford.ai/vision/v1/ocr?language=<languagecode>&detectOrientation=<true/false>&subscription-key=<your subscription key>

请尝试。

请参阅此Vision API页面:https://dev.projectoxford.ai/docs/services/54ef139a49c3f70a50e79b7d/operations/5527970549c3f723cc5363e4

Please refer to this Vision API page: https://dev.projectoxford.ai/docs/services/54ef139a49c3f70a50e79b7d/operations/5527970549c3f723cc5363e4


这篇关于牛津计划:401未经授权的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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