How to automatically find pattern size for Opencv Camera Calibration?

asked 2019-07-11 09:33:44 -0600

Dronzer gravatar image

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 theCircle Grid Pattern patternsize.

edit retag flag offensive close merge delete

Comments

Why not loop? Start big and reduce until it works.

Der Luftmensch gravatar imageDer Luftmensch ( 2019-07-11 11:01:03 -0600 )edit

@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.

Dronzer gravatar imageDronzer ( 2019-07-11 11:13:54 -0600 )edit