# findCirclesGrid failing unexpectedly on similar image

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.: but .

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 close merge delete