【问题标题】:Google Cloud Vision API returning nothting for Type = TEXT_DETECTIONGoogle Cloud Vision API 不返回 Type = TEXT_DETECTION
【发布时间】:2016-07-09 10:20:19
【问题描述】:

我正在使用 Google Cloud Vision API 开发 OCR android 应用程序

为了测试,我使用了 Google 提供的示例应用程序

https://github.com/GoogleCloudPlatform/cloud-vision/tree/master/android/CloudVision

我已经针对“LABEL_DETECTION”类型对其进行了测试,它工作正常

我已更新此示例应用程序以适用于类型“TEXT_DETECTION”而不是“LABEL_DETECTION”

我已使用此图像对其进行了测试,它返回“无”结果

[ocr_image]

如果有人知道问题出在哪里,不胜感激

提前致谢

【问题讨论】:

    标签: android google-cloud-platform google-cloud-vision


    【解决方案1】:

    我遇到了同样的问题。就我而言,它发生是因为我忘记更改 convertResponsetoString 方法。

    尝试改变这一点:

    列表标签 = response.getResponses().get(0).getLabelAnnotations();

    到这里:

    列表标签 = response.getResponses().get(0).getTextAnnotations();

    【讨论】:

      猜你喜欢
      • 2017-07-07
      • 1970-01-01
      • 1970-01-01
      • 2019-10-15
      • 1970-01-01
      • 1970-01-01
      • 2017-05-08
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多