Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About 3D bounding box calculation problem #30

Open
qulei123 opened this issue Feb 22, 2022 · 1 comment
Open

About 3D bounding box calculation problem #30

qulei123 opened this issue Feb 22, 2022 · 1 comment

Comments

@qulei123
Copy link

According to the calculation of the get_3d_box() function, the 8 corner coordinates of the detection box are obtained.
Why is it necessary to use the T1 matrix for a transformation to get the correct corner coordinates?
What does this T1 matrix mean?
(x,y,z) is not the reference radar coordinate system?

T1 = np.array([[0.0, -1.0, 0.0, 0.0],
               [0.0, 0.0, -1.0, 0.0],
               [1.0, 0.0, 0.0, 0.0],
               [0.0, 0.0, 0.0, 1.0]]
              )
box3d_pts_3d[:, 0:3] = self.get_3d_box((l, w, h), ry,(x,y,z))
box3d_pts_3d = np.dot(np.linalg.inv(T1), box3d_pts_3d.T).T
@mrmouss
Copy link

mrmouss commented Mar 16, 2022

Hi, I'm not sure about the code but the above transformation matrix is a typical LiDAR (front-left-up) to camera (right-down-front) coordinates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants