I’m using Python.
Every example I’ve come across define rvec=None and tvec=None and then when calling the function have tvec and rvec both as return variables as well as arguments to the function, such as:
rvec=None
tvec=None
retval, rvec, tvec = aruco.estimatePoseBoard( corners, ids, board, camera_matrix, dist_coeffs, rvec, tvec )
Now I’m not a professional Python programmer but this seems like a very strange an unnecessary way to do things. Why not just allow users to define rvec and tvec as return values and not have to pass empty rvec and tvec variables as arguments?