How to automatically find pattern size for Opencv Camera Calibration?
I would like to know if there is a way to automatically find the pattern size for findCirclesGrid() function in opencv. I am currently using a circle grid pattern with a zoom lens camera and would like to find the distortion at all the zoom levels.
While Zooming the camera the grid circle is half visible at the edges as shown in the figure and findCirclesGrid() function doesn't work irrespective of the patternsize.
Why not loop? Start big and reduce until it works.
@Der Luftmensch I have tried using a loop but the function returns true at couple of values that worsens the lens distortion correction.For the image shown above, I have no luck at any value that I have tried.