I'm trying to run the code from this tutorial - Pose Estimation,
and I get the following error, after calling solvePnPRansac
function:
rvecs, tvecs, inliers = cv2.solvePnPRansac(objp, corners2, mtx, dist)
ValueError: too many values to unpack
According the documentation:
Python: cv2.solvePnPRansac(objectPoints, imagePoints, cameraMatrix, distCoeffs[, rvec[, tvec[, useExtrinsicGuess[, iterationsCount[, reprojectionError[, minInliersCount[, inliers[, flags]]]]]]]]) → rvec, tvec, inliers
Did anyone handle with this issue ?
(Python 2.7 , OpenCV 3b)