findCirclesGrid failing unexpectedly on similar image

asked 2017-06-21 10:42:40 -0500

HolyMoly gravatar image

updated 2019-01-06 12:17:23 -0500

Hi! I am using OpenCV 2.4 on Ubuntu and I am trying to detect an asymmetric circle grid. First I am cropping and warping the image and in the resulting image I am using findCirclesGrid. It is working fine in around 40% of the cases but fails arbitrarily even when the images are visually very similar. e.g.: Successful detection here but doesn't work on this.

I have also tried enabling CALIB_CB_CLUSTERING flag and weirdly that seems to make things worse for me. Manipulating parameters for the SImpleBlobDetector doesn't work in a consistent way for all the images. What could be going wrong? Is there a way to debug it systematically and visually observe where findCirclesGrid is failing?

Thanks!

edit retag flag offensive close merge delete