Reputation: 1188
I'm trying to use OpenCV and python to calibrate a camera. This is the OpenCV code:
CalibrateCamera2(objectPoints, imagePoints, pointCounts, imageSize, cameraMatrix, distCoeffs, rvecs, tvecs, flags=0)
Where objectPoints contains all of the "model points". One model point, for each chessboard point found in all of the images. Fill this matrix will the sequential pattern of the board. i.e. (x,y,z) where x=x_co-ordinate of model point, y=y_co-ordinate of model point, and z (normally set to 0) is the depth of the point.
How can I get these "model points" ?
Upvotes: 1
Views: 1287
Reputation: 2395
Just measure them yourself. If the grid squares are 5mm x 5mm then your coordinates will be (0,0,0),(5,0,0),(0,5,0),(5,5,0),(10,0,0) and so on.
Upvotes: 3