error: (-215:Assertion failed) npoints >= 0 && src.isContinuous() && (depth == CV_32F || depth == CV_64F) in function ‘cv::undistortPoints’
a = cv2.undistortPoints(target,cam_mat,dist)
target用浮点数试试
error: (-215:Assertion failed) npoints >= 0 && src.isContinuous() && (depth == CV_32F || depth == CV_64F) in function ‘cv::undistortPoints’
a = cv2.undistortPoints(target,cam_mat,dist)
target用浮点数试试