使用OpenCV计算两个图像的百分比相似度

编程入门 行业动态 更新时间:2024-10-12 08:23:23
本文介绍了使用OpenCV计算两个图像的百分比相似度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我可以使用bewlow显示的代码找到匹配的功能。我想计算两个图像之间的百分比相似度。我是OpenCV的新手。任何形式的帮助都将受到高度赞赏。

I am able to find matching features using bewlow shown code. I want to calculate percentage similarity between two images. I am new to OpenCV. Any kind of help will be highly appreciated.

FeatureDetector detector = FeatureDetector.create(FeatureDetector.ORB); DescriptorExtractor extractor = DescriptorExtractor .create(DescriptorExtractor.ORB); detector.detect(image1, keypoints1); detector.detect(image2, keypoints2); extractorpute(image1, keypoints1, descriptors1); extractorpute(image2, keypoints2, descriptors2); DescriptorMatcher matcher = DescriptorMatcher .create(DescriptorMatcher.BRUTEFORCE_HAMMING); MatOfDMatch matches = new MatOfDMatch(); matcher.match(descriptors1, descriptors2, matches);

是否有其他图书馆可用于同一目的?

Is there any other library available serving the same purpose?

推荐答案

我找到两个图书馆 pHash 和 pdiff 提供我想要的东西。我将评估它们的性能以及与我的代码的兼容性并选择最好的代码。

I found two libraries pHash and pdiff offering what I am looking for. I'll evaluate their performance and as well as compatibility with my code and pick the best one.

更多推荐

使用OpenCV计算两个图像的百分比相似度

本文发布于:2023-11-29 11:36:34,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1646283.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:百分比   图像   两个   OpenCV

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!