# 需要导入模块: import cv2 [as 别名]# 或者: from cv2 importCALIB_ZERO_TANGENT_DIST[as 别名]defget_fitflags(self,field=0):ifself.model[field] =='perspective': fitflags = cv2.CALIB_USE_INTRINSIC_GUESSifself.fixaspectratio[field]: fitflags = fitflags + cv2.CALIB_FIX_ASPECT_RATIOifself....
flags = flags | cv2.CALIB_FIX_ASPECT_RATIO flags = flags | cv2.CALIB_FIX_FOCAL_LENGTH# apparently, we can't fix the tangential distance. What the hell? Zero it out.flags = flags | cv2.CALIB_ZERO_TANGENT_DISTflags = fix_radial_flags(flags) flags = flags | cv2.CALIB_FIX_S1_S2_S3_...