Google Cloud Vision API 的 Web 检测功能中缺少描述?

Posted

技术标签:

【中文标题】Google Cloud Vision API 的 Web 检测功能中缺少描述?【英文标题】:Missing description in Web Detection feature of Google Cloud Vision API? 【发布时间】:2019-06-15 03:23:04 【问题描述】:

我正在使用 Google Cloud Vision API 的 [Web Detection][1] 功能。但是,对于某些图像,我收到的 JSON 响应没有某些实体的描述参数。进一步看,我发现 id 以“/t/”开头的实体缺少描述,并且大多数 id 以“/m/”开头的实体都存在描述。谁能建议我该怎么做?这是一个错误还是应该只是这样?另外,有什么方法可以让我获得有关实体 ID 及其语法的更多详细信息?

这是示例 Web 检测 JSON 输出,实体 ID 以“/t”和“/m”开头,没有描述。


    "webEntities": [
      
        "entityId": "/m/013_1c",
        "score": 0.608,
        "description": "Statue"
      ,
      
        "entityId": "/t/21mxcct4492j5",
        "score": 0.6404
      ,
      
        "entityId": "/m/0jg24",
        "score": 0.5815,
        "description": "Image"
      ,
      
        "entityId": "/g/11b77b4nf8",
        "score": 0.4837,
        "description": "2018"
      ,
      
        "entityId": "/t/24mypdx4svpvn",
        "score": 0.3909
      ,
      
        "entityId": "/m/0svqtrf",
        "score": 0.3664
      ,
      
        "entityId": "/t/2cvnxcsw4b8sf",
        "score": 0.3552
      ,
]

【问题讨论】:

人们喜欢在快速的时候提供帮助(例如,他们不必点击外部链接)。有没有办法将屏幕截图中的一些数据作为代码列表包含在问题中? 【参考方案1】:

请记住,Vision API 要求图像具有足够的大小,以便可以轻松地区分请求中的重要特征。小于或大于这些推荐尺寸的尺寸可能会起作用。然而,较小的尺寸可能会导致较低的准确性,而较大的尺寸可能会增加处理时间和带宽使用,而不会在准确性方面提供可比的优势。您可以验证Supported Images 以确定这是否是您的问题的根本原因。

我建议您在 Vision API 网页中输入您的信息try;此外,Web detection tutorial 可用于比较您的结果,source code 在 Github 中可用。

【讨论】:

以上是关于Google Cloud Vision API 的 Web 检测功能中缺少描述?的主要内容,如果未能解决你的问题,请参考以下文章

Google Cloud Vision API PDF 文本提取

如何提高google cloud vision api的处理速度?

Google Cloud Vision API“错误的图像数据”错误

Google Cloud Vision API 的 Web 检测功能中缺少描述?

PHP Google Cloud Vision API:注释立即淹没内存

应用程序凭据在 Google Cloud Vision API 中不可用