Camera calibration using a square grid pattern
Hi all,
I'm aware that openCV has inbuilt functions to support camera calibration using,
1. Circle pattern - cv2.findCirclesGrid()
2. Chessboard pattern. - cv2.findChessboardCorners()
But my application required to use a square grid pattern as shown in this link Camera calibration using a square grid.
I would like to know is there any possible way to use openCV inbuilt camera calibration functions directly or alter them accordingly to achieve my requirement.
Any guidance would be appreciated.
Thanks in advance.
You want to calibrate using 1 dimensional array of points ?
Hi Ziri,
I've edited the original question to get clear idea about my requirement(Attached a square grid image,You can forget about the paper :-) )
No, I'm not going to use 1 dimensional array of points for calibration.In chessboard pattern, coordinates of the chessboard corners are used for calibration(2D array). Similarly I'm trying to use 2D array of square grid corner coordinates to get camera calibration matrix.
Thanks..
can you explain why it is so ?
while it should be possible to just adapt the model points to your grid, choosing a square one has its downsides (90° rotation ambiguity)
Hi berak,
Well. I'm trying to calibrate a camera which is integrate in to a large system.Pattern is predefined for the system.Therefore i can not alter it. Yes I'm aware that rotation ambiguity would be an issue.But I'm more focus towards eliminating distortions such as fish-eye effect in this phase.Rotational distortion in the camera is corrected by an alternative mechanism previously.
Thanks..
you'll have to come up with your own way, to find the square corners for this, i'm afraid. (findChessboardCorners won't work)
Hi berak,
Yeah, That's what i thought.But i have some doubts,
Thanks for the help!!! I really appreciate it.
Thanks berak. Let's see where it goes.. :-) :-)