我想用openCv校准我的拖车相机。我使用了错误的代码,但是我得到了这个错误
代码:
TERMINATION_CRITERIA = (cv2.TERM_CRITERIA_EPS , 30,0.001)
(_, _, _, _, _, rotationMatrix, translationVector, _, _) = cv2.stereoCalibrate(
objectPoints, leftImagePoints, rightImagePoints,
leftCameraMatrix, leftDistortionCoefficients,
rightCameraMatrix, rightDistortionCoefficients,
imageSize, None, None, None, None,TERMINATION_CRITERIA,
cv2.CALIB_FIX_INTRINSIC)错误: cv2.CALIB_FIX_INTRINSIC,TERMINATION_CRITERIA) SystemError:新样式getargs格式,但参数不是元组
发布于 2018-07-06 16:43:26
我相信你需要根据文档来转换你的最后两个论点
TERMINATION_CRITERIA = (cv2.TERM_CRITERIA_EPS , 30,0.001)
(_, _, _, _, _, rotationMatrix, translationVector, _, _) = cv2.stereoCalibrate(
objectPoints, leftImagePoints, rightImagePoints,
leftCameraMatrix, leftDistortionCoefficients,
rightCameraMatrix, rightDistortionCoefficients,
imageSize, None, None, None, None,
TERMINATION_CRITERIA, cv2.CALIB_FIX_INTRINSIC) #switched<>https://stackoverflow.com/questions/51214526
复制相似问题