gpt4 book ai didi

java - 在 Java 中使用 OpenCV 比较图像相似度

转载 作者:搜寻专家 更新时间:2023-11-01 03:19:33 25 4
gpt4 key购买 nike

如何使用 OpenCV 在 Java 中比较两个图像的相似性。我必须提一下,这些图像可能因角度、亮度等而异。我对比较相同的图像不感兴趣。例如: enter image description here

enter image description here

处理完这两张图片后,我想知道它们包含相同的对象,或者它们看起来有 70% 相似

最佳答案

这在 Java 中是可能的,使用 ASIFT,在 OpenImaj 库中实现。示例 here

Asift 从图像中提取局部特征,然后使用匹配器检测相似特征。

ASIFT 在线演示:http://demo.ipol.im/demo/my_affine_sift/

关于java - 在 Java 中使用 OpenCV 比较图像相似度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34729220/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com