Closed aviralchharia closed 1 year ago
rvec
has to be an axis-angle vector but your representation is a rotation matrix R
. You will have to convert it to rvec as follows
import cv2
R = .... # your rotation matrix
rvec = cv2.Rodrigues(R)[0] # use this rvec
w
and h
are the width/height of the image. Just fill in whatever height/width the images have.
Resolved, Thanks for helping!
The readme mentions that rvec is a [1 x 3] vector. I tried testing the model on few sequences from the CMU Panoptic dataset. However, the calibration file of CMU Panoptic specifices rvec as a [3 x 3] matrix. Am I missing something here? Further what values of "w" and "h" did you use while testing the model on CMU Panoptic? The original Calibration file does not say anything.
The Camera Calibration file in CMU Panoptic: