solvepnpransac专题

OpenCV错误 ‘Too many values to unpack‘ with solvePnPRansac() - Pose Estimation

在进行姿态估计时,运行代码: corners2 = cv2.cornerSubPix(gray, corners, (11, 11), (-1, -1), criteria)rvecs, tvecs, inliers = cv2.solvePnPRansac(objp, corners2, mtx, dist) 出现了 ValueError: too many values to unpack