abidrahmank/OpenCV2-Python-Tutorials

Pose Estimation Code Mistake

Opened this issue · 0 comments

Hello,
first of all, thank you for this great tutorial! Excelent work.

I noticed there is a strange mistake in your code example:
In the section where you calculate the translation and rotation, the solvePnPRansac function returns one extra value.
This isn't documented, but it happend when i excecute it. It looks like the return value similar to the findChessboardCorners function or the calibrateCamera function.

This is a small snippet, a little modified to show the issue, from your tutorial:
image
On the right is the output of the excecution