1 Reply Latest reply on Mar 6, 2015 1:35 PM by CMata_Intel

    opencv-simpleBlobDetector issue

    SAHER_MAQSOOD

      Hello,

      I am trying to use opencv feature SimpleBlobDetector to detect blobs with only one of its params; filterByCircularity. But it alone doesn't seems to detect even a perfect circle. I have tried it with the minimum and maximum range but that also does not seems to helps.

       

      If I use filter-by-area in combination with filterByCircularity, it seems to work; because of the area filters i think.

       

      Can you plz tell me the default values of min and maximum circularity?

       

      Also has anyone tried using filterByCircularity alone? I was having a similar problem when using filterByColor as well.

       

      params.filterByCircularity = true;

      params.minCircularity = 0.0;

      params.maxCircularity = 1;

       

      I am also attaching the image of the circle. I convert it into grayscale and then use it.

       

      The code works fine when I use different filters.

       

      Regards
      Saher Maqsood