google-cloud-vision - 每个文本的 Google Cloud Vision 准确度返回 0.0
问题描述
我正在使用谷歌云视觉 OCR 来检测图像中的文本。我在谷歌提供的文本之后尝试了 .confidence ,但它总是返回为 0.0
response = client.document_text_detection(image=image_googlecloud)
texts = response.text_annotations
texts[0].confidence == 0.0
###This is the part of output of the response variable (the last few lines)###
y: 2657
}
}
text: "E"
confidence: 1.0
}
confidence: 0.9900000095367432
}
confidence: 0.9900000095367432
}
block_type: TEXT
confidence: 0.9900000095367432
}
}
当我打印响应变量具有所有置信度值(都大于 0.0)但是当我尝试获取某个单词的置信度时(在上面的方法中)它返回 0.0。有没有办法解决这个问题来获得每个单词的信心?
解决方案
推荐阅读
- c++ - 有没有非utf8字符这样的东西
- html - 将两个跨度与 li 中间的空格垂直对齐
- tensorflow - 在 tensorflow 上标记人体肌肉的方法
- csv - 旧版本的 iMacros 是否有“文件访问扩展名”来使用 .CSV?
- javascript - 如何在 JavaScript 中找到最近的小时的 LEFT 秒或 PAST 秒?
- java - Spring Boot 的 Spring Security 默认凭据是什么?
- javascript - 如何隐藏/保护我的客户端 HTML/JS 代码?
- flutter - 如何提示用户在颤动中注销?
- c# - 使用 Visual Studio 16.3.2 模板创建 Razor 类库时出现问题
- java - 我需要帮助在 java 中进行更改。它没有正确发出变化