Closed simoneBrancati closed 5 years ago
The rvec
and tvec
are in the same format that opencv's project points expect them. The problem might come from the cameraMatrix. You can use this method to get the camera matrix in OpenCV's format from an OpenSfM camera object.
@paulinus Noticed a typo in the help of the method you have shown. versior
-> version
Thanks, it was the correct solution
Hi, i'm trying to use rotation and translation from the shots found in reconstruction.json in OpenCV to render a 3D object in the same pose of the image. The render function is this:
When i manually pass the rotation vector and the translation vector (rvecs and tvecs) from reconstruction.json the 3D object is projected way off the borders of the frame, as if the values of this vectors were too big.
Am i missing some coordinate conversion or some other transformation?