I want to use opencv Cameracalibration function (calibrateCamera()
) to calibrate my camera.
According to opencv document, I have to take at least 10 shots of my chessboard.
But when I want to calculate the objectPoints
(here, the location of chessboard inner points), I confuse:
If the origin is the camera and the chessboard is moving, it's easy for me to understand the theoretic base of the concept but hard to calculate the objectPoints
.
The second way is to fix the chessboard and move the camera.But in this solution, I don't understand how to apply the distance of camera from the chessboard in calculating objectPoints
or any other way to say to opencv camera calibration function this changing in distance and direction.
I'll be appreciated if you could help me to solve my problem.