如何使用OpenCV中SIFT提取的特征在目标对象周围获取矩形 [英] How to get a rectangle around the target object using the features extracted by SIFT in OpenCV

查看:109
本文介绍了如何使用OpenCV中SIFT提取的特征在目标对象周围获取矩形的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在OpenCV中进行对象检测项目,该项目包括将模板图像中的对象与参考图像进行匹配.使用SIFT算法可以准确地检测和匹配特征,但是我希望重新匹配匹配的特征 我的算法使用KD-Tree est ean First技术获取匹配项

I'm doing project in OpenCV on object detection which consists of matching the object in template image with the reference image. Using SIFT algorithm the features get acurately detected and matched but I want a rectagle around the matched features My algorithm uses the KD-Tree est ean First technique to get the matches

推荐答案

如果要在检测到的对象周围放置一个矩形,请在这里,您将获得与此完全相同的代码示例.您只需在单应性H周围绘制一个矩形.

If you want a rectangle around the detected object, here you have code example with exactly that. You just need to draw a rectangle around the homography H.

希望它会有所帮助.祝你好运.

Hope it helps. Good luck.

这篇关于如何使用OpenCV中SIFT提取的特征在目标对象周围获取矩形的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆