将图像上传到Microsoft Cognitive Services? [英] Uploading an image to Microsoft Cognitive Services?

查看:59
本文介绍了将图像上传到Microsoft Cognitive Services?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将图像发布到 Microsoft的计算机视觉API中认知服务.它要求我将图片上传为网址.我有用户上传的图片,且带有URI,如 http://localhost :9000/content/8a684db8?file = IMG-20160503-WA0002.jpg 在我的本地PC上.我尝试了明显的方法,但这不起作用.如何将图片传递给他们的API?

I am trying to post an image to the Computer Vision API of Microsoft Cognitive Services. It requires me to upload the image as an url. I have the uploaded image by the user with an URI like http://localhost:9000/content/8a684db8?file=IMG-20160503-WA0002.jpg on my local pc. I tried the obvious but that doesn't work. How to pass the image to their API?

他们还提到我可以将图像发布为原始二进制文件,但我无法继续下去.

They also mention I can post the image as a raw binary but I am unable to get how to get going.

PS:如果要在其他情况下进行测试,则可以使用免费订阅获得订阅密钥.

PS: You can get the subscription keys using the free subscriptions if you want to test it for some other cases.

推荐答案

localhost是127.0.0.1,例如从您的PC上访问您的PC.您应该在互联网上传递PC的外部IP

localhost is 127.0.0.1, e.g. your PC when accessing from your PC. You should pass external IP of your PC in the internet

这篇关于将图像上传到Microsoft Cognitive Services?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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