Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-cloud-platform/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google cloud platform 如何获取Google Cloud Vision API徽标检测的置信度分数?_Google Cloud Platform_Google Cloud Vision_Google Apis Explorer - Fatal编程技术网

Google cloud platform 如何获取Google Cloud Vision API徽标检测的置信度分数?

Google cloud platform 如何获取Google Cloud Vision API徽标检测的置信度分数?,google-cloud-platform,google-cloud-vision,google-apis-explorer,Google Cloud Platform,Google Cloud Vision,Google Apis Explorer,如何找到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_anno

如何找到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))

你经常得到错误的结果吗?你经常得到错误的结果吗?
# Performs logo detection on the image file
response_logo = client.logo_detection(image=image)
logos = response_logo.logo_annotations
print('Logos:')

logos_dict = {}
for logo in logos:
    print(logo.description)
    print('logo type: ', type(logo))
    print(logo)
    logos_dict.update({'logo': logo.description,
                       'logo_score': logo.score})

print(logos_dict)