I am using Camera calibration with OpenCV tutorial https://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_calib3d/py_calibration/py_calibration.html to calibrate my camera. I have a question about how to use the real physical grid size on the chess board. I used the physical grid size in the following line:
objp[:,:2] = np.mgrid[0:7,0:6].T.reshape(-1,2) * gridsize
I found that changing the grid size does not change the camera intrinsic matrix, it only change the camera position. So in the line below:
ret, mtx, dist, rvecs, tvecs = cv2.calibrateCamera(objpoints, imgpoints, gray.shape[::-1],None,None)
mtx, dist is always the same no matter what grid size you use. Only tvecs changes with grid size.
My question is “Is there a way to get the unique solution for mtx, and tvecs, given certain grid size?”