1 year ago

#279454

test-img

Teegrammer

Parameters for cv.stereoCalibrate() to calculate R and T with undistorted images

i'm trying to calibrate two different cameras and get the extrinsics. I've used cv.cameraCalibrate() to get the intrinsics of both cameras and i want to use

cv.stereoCalibrate(objectPoints, imagePoints1, imagePoints2, cameraMatrix1, distCoeffs1, cameraMatrix2, distCoeffs2, imageSize)

to get the R and T Matrix. But now i am unsure about the parameters to this function since i've undistorted my images before finding the chessboard. What values should i set the cameraMatrixes and the distCoeffs to?

I've tried to set them as the previously calculated matrixes, but that gives completely wrong results. If i set them to None they are in the right ballpark, but not quite right. Now i am unsure what's right or wrong and if i've made a mistake beforehand.

Also, can i set the imageSize to None, since the flag CALIB_FIX_INTRINSIC is enabled? If i understood the documentation correctly, then the imageSize isn't need, because i don't want to calculate the intrinsics.

Thank you very much :)

python

opencv

computer-vision

camera-calibration

calibration

0 Answers

Your Answer

Accepted video resources