为什么google 云视觉Logo 检测return 同一张图片的结果不同?
Why does google cloud vision Logo detection return different results on the same image?
我一直在玩 google 云视觉 API,即徽标检测功能。基本上我想确定图像是否是徽标,所以我通过 API 运行 它。但是,我每次 运行 总是得到不同的结果。有时 API 将其归类为徽标,有时则不然。对此是否有任何解释以及可能提高准确性的方法?
编辑:我刚刚确定了真正的问题所在。我正在尝试检测面向 public 的网站上的远程图像上的徽标,偶尔(但并非总是)返回以下错误:
I20180409-21:25:38.090(8)? error:
I20180409-21:25:38.091(8)? { details: [],
I20180409-21:25:38.091(8)? code: 13,
I20180409-21:25:38.091(8)? message: 'We can not access the URL
currently. Please download the content and pass it in.' },
这个问题的原因是什么,有解决办法吗?
我已经用 API explorer, with the same logo (in my example, same imageUri) I always got the same result. For this image 试过了,我总是得到低于徽标的结果:
"mid": "/m/0dwx7",
"description": "logo",
"score": 0.63438356,
"topicality": 0.63438356
您可以用 this link 试试,如果输出不同请告诉我。
我已经解决了这个问题,方法是将图像下载为 base64 编码图像,然后将其传递到 google 视觉 API 而不是 url
我一直在玩 google 云视觉 API,即徽标检测功能。基本上我想确定图像是否是徽标,所以我通过 API 运行 它。但是,我每次 运行 总是得到不同的结果。有时 API 将其归类为徽标,有时则不然。对此是否有任何解释以及可能提高准确性的方法?
编辑:我刚刚确定了真正的问题所在。我正在尝试检测面向 public 的网站上的远程图像上的徽标,偶尔(但并非总是)返回以下错误:
I20180409-21:25:38.090(8)? error:
I20180409-21:25:38.091(8)? { details: [],
I20180409-21:25:38.091(8)? code: 13,
I20180409-21:25:38.091(8)? message: 'We can not access the URL
currently. Please download the content and pass it in.' },
这个问题的原因是什么,有解决办法吗?
我已经用 API explorer, with the same logo (in my example, same imageUri) I always got the same result. For this image 试过了,我总是得到低于徽标的结果:
"mid": "/m/0dwx7",
"description": "logo",
"score": 0.63438356,
"topicality": 0.63438356
您可以用 this link 试试,如果输出不同请告诉我。
我已经解决了这个问题,方法是将图像下载为 base64 编码图像,然后将其传递到 google 视觉 API 而不是 url