Update code to take into account solvePnP and solvePnPRansac use InputOutputArray for rvec and tvec parameters.