我正在试着将一张狗的图片与一桶狗的图片进行比较,并获得它们的相似性,有谁有什么线索可以做到这一点吗?
发布于 2019-10-16 04:16:57
你可以试试Vision API的ProductSearch:https://cloud.google.com/vision/product-search/docs/
您构建了一个产品的ProductSet。您可以向每个产品添加参考图像。稍后,您在中发送一个查询图像,它将在您的ProductSet中返回视觉上最相似的结果。
发布于 2019-10-17 01:57:39
您可以使用我的Ruby gem实现两个感知图像散列来计算图像相似度。
require "dhash-vips"
hash0 = DHashVips::IDHash.fingerprint "dog.jpg"
hash1 = DHashVips::IDHash.fingerprint "dog1.jpg"
hash2 = DHashVips::IDHash.fingerprint "dog2.jpg"
puts "dog1 is this much different: #{DHashVips::IDHash.distance hash0, hash1}"
puts "dog2 is this much different: #{DHashVips::IDHash.distance hash0, hash2}"https://stackoverflow.com/questions/58401906
复制相似问题