我正在使用OpenCV对相机进行立体声校准。我已经对单个摄像机进行了校准。并且根据此documentation,指定预先计算的相机矩阵和失真系数需要传递标记CV_CALIB_FIX_INTRINSIC
但是如何通过标志?
我尝试过的值:
flags="CV_CALIB_FIX_INTRINSIC"
flags=cv2.CV_CALIB_FIX_INTRINSIC
flags=CV_CALIB_FIX_INTRINSIC
我分别收到以下错误:
TypeError: an integer is required (got type str)
Missing: module cv2 has no attribute CV_CALIB_FIX_INTRINSIC
NameError: name 'CV_CALIB_FIX_INTRINSIC' is not defined
最佳答案
正确的名称是:
cv2.CALIB_FIX_INTRINSIC
关于python - Python-OpenCV模块缺少属性CV_CALIB_FIX_INTRINSIC,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/42864070/