【发布时间】:2020-06-10 03:37:19
【问题描述】:
如何找到 Google Vision API 的徽标检测方法的概率或可能性(置信度分数)?
我有一张图片,它为徽标提供了这些,但没有一个是正确的。我想在置信度得分方面为它使用一个阈值。
Logos:
Sogndal Fotball
Tequila Herradura
代码:
# Performs logo detection on the image file
response_logo = client.logo_detection(image=image)
logos = response_logo.logo_annotations
print('Logos:')
for logo in logos:
print(logo.description)
if response_logo.error.message:
raise Exception(
'{}\nFor more info on error messages, check: '
'https://cloud.google.com/apis/design/errors'.format(
response_logo.error.message))
【问题讨论】:
-
您是否经常得到错误的结果?
标签: google-cloud-platform google-cloud-vision google-apis-explorer