【问题标题】:Google Cloud Vision Logo Detection API - failing to identify logosGoogle Cloud Vision 徽标检测 API - 无法识别徽标
【发布时间】:2020-01-29 17:29:24
【问题描述】:

我正在尝试从网站上抓取图像并使用 Google Cloud Vision API 来检测网站上的图像是否是徽标。如果我为它提供一个像 Apple 这样的标志,它就可以工作,但它似乎不适用于众所周知的非财富 500 强科技公司标志(例如 LaunchDarkly、LogDNA 等),尽管这些图像显然是标志。它应该适用于任何类型的标志还是只适用于大品牌?有没有更适合我需求的解决方案?

client = vision.ImageAnnotatorClient()
with io.open('./img.png', 'rb') as image_file:
        content = image_file.read()
        image = vision.types.Image(content=content)
        response = client.logo_detection(image=image)
        logos = response.logo_annotations
        for logo in logos:
            print(logo.description)
            print(logo.score)

        if response.error.message:
            raise Exception(
                '{}\nFor more info on error messages, check: '
                'https://cloud.google.com/apis/design/errors'.format(
                    response.error.message))

【问题讨论】:

    标签: python machine-learning computer-vision google-vision


    【解决方案1】:

    如the documentation 中所述,徽标检测可检测流行 产品徽标。预计它不会检测到模型尚未训练过的徽标。

    您可以在 CGP 中尝试的解决方案是 AutoML Vision。该产品允许您重新训练 GCP 的模型,以根据您自己定义的标签对图像进行分类。您可以使用需要检测和重新训练模型的徽标创建数据集。即使您没有任何机器学习专业知识,它的界面也非常简单。

    【讨论】:

    • 是否可以训练 automl 来检测图像中的 logo,例如在网站截图中检测训练好的 logo?
    • 是的,AutoML Vision 就是为此目的而设计的。请检查上述文档。
    猜你喜欢
    • 2021-04-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-10-01
    • 2015-05-20
    • 2018-05-29
    • 1970-01-01
    相关资源
    最近更新 更多