使用计算机视觉添加图像标题 [英] Add image captions with Computer Vision

查看:89
本文介绍了使用计算机视觉添加图像标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我遵循了本教程,但无法显示ComputerVision字幕:

docs.microsoft.com/zh-cn/azure/functions/tutorial-static-website-serverless-api-with-database?tutorial-step=5

我已经重做了几次该教程,但是我只看到图像上方出现一个空白的蓝色框:

[无法共享图像]

所有步骤我都使用C#代码.有任何想法吗?

解决方案

西恩(Hi Sean)

我刚刚遍历了该教程中的步骤,并且看到了同样的事情.看起来Cosmos DB中的descriptions属性未填充值(仅空值),因此对Computer Vision API的HTTP调用可能存在问题. 我将进行更深入的研究,并用我的发现更新该线程.顺便说一句,您的图片正在投放吗?从图像"成功渲染和缩略图"容器,即使这些容器与Web容器位于同一级别 是,静态SPA似乎相对引用了


网络容器中的那些图像?


Hello,

I followed this tutorial and can't get the ComputerVision captions to appear:

docs.microsoft.com/en-us/azure/functions/tutorial-static-website-serverless-api-with-database?tutorial-step=5

I've redone the tutorial a couple times and I only see a blank blue box appear above my images:

[can't share images]

I'm using the C# code for all of the steps. Any ideas?

解决方案

Hi Sean

I have just gone though the steps on that tutorial and am seeing the same thing. It looks like the descriptions property isn't populating with values (only null values) in Cosmos DB so it may be an issue with the HTTP call made to the Computer Vision API. I'll dig deeper and update this thread with my findings. BTW, are your images being served & rendered successfully from the "images" and "thumbnails" containers even though these containers reside at the same level as


web container is and the static SPA seems to make relative references to those images within


web container?


这篇关于使用计算机视觉添加图像标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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