Detect a specific shape using OpenCV

I'm still a beginner in OpenCV.

Currently, I'm trying to detect a specific shape as in the image in the link below using OpenCV.

在这里输入图像描述

I've read many blogs and articles about detecting shapes using OpenCV but I've not found anything related to what I'm working on.

Also, I can't use methods like cvHistogram, because I don't want to find matches in two almost identical pictures, but instead, I want to detect a specific shape, and not some geometric shapes like rectangles, circles, etc.

Do you know a way to do it?

Thank you in advance.


It's hard to say how to detect this shape. You should specify some criterions about shape that you want to detect. For example in your case:

  • should this always be inside another contour?
  • should it has that big black blob?
  • And so on.

    And after this it will be easier to find good detection algorithm.

    By the way reading these docs will be useful:

  • Finding contours in your image
  • Structural Analysis and Shape Descriptors
  • 链接地址: http://www.djcxy.com/p/66966.html

    上一篇: 如何在使用jQuery选择它后删除<select>选项?

    下一篇: 使用OpenCV检测特定形状