使用OpenCV的标志检测 [英] Logo detection using OpenCV
问题描述
我正在尝试在我正在处理的移动应用中实现一个复活节彩蛋。当在摄像机视图中检测到标志时,将触发这些复活节彩蛋。我想检测的标志是这个:。
I'm attempting to implement an easter egg in a mobile app I'm working on. These easter egg will be triggered when a logo is detected in the camera view. The logo I'm trying to detect is this one: .
我不太确定什么是最好的方法来处理这是因为我是新的计算机视觉。我目前发现水平边缘使用Canny算法。然后我使用概率霍夫变换找到线段。它的输出如下(蓝线代表由概率Hough变换检测的线段):
I'm not quite sure what the best way to approach this is as I'm pretty new to computer vision. I'm currently finding horizontal edges using the Canny algorithm. I then find line segments using the probabilistic Hough transform. The output of this looks as follows (blue lines represent the line segments detected by the probabilistic Hough transform):
下一步我要采取的是寻找一组24线(拟合在接近正方形的矩形内),每条线将必须具有大致相同的长度。我会使用这两个信号来表示标志的潜在存在。我知道这可能是一个非常天真的方法,并欢迎建议如何更好地检测这个标志更可靠的方式?
The next step I was going to take would be to look for a group of around 24 lines (fitting within a nearly square rectangle), each line would have to be approximately the same length. I'd use these two signals to indicate the potential presence of the logo. I realise that this is probably a very naive approach and would welcome suggestions as to how to better detect this logo in a more reliable manner?
感谢
推荐答案
您可以使用 SIFT ,使用Rob Hess的 SIFT库。它使用OpenCV,也很快。我想,比目前接近标志检测的方法更容易)
You may want to go with SIFT using Rob Hess' SIFT Library. It's using OpenCV and also pretty fast. I guess that easier than your current way of approaching the logo detection :)
尝试查找 SURF ,声称更快,比SIFT鲁棒。此功能检测教程将会帮助您。
Try also looking for SURF, which claims to be faster & robuster than SIFT. This Feature Detection tutorial will help you.
这篇关于使用OpenCV的标志检测的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!