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

Which variables are in "additional_info"? #8

Closed
autonomobil opened this issue Jul 30, 2019 · 7 comments
Closed

Which variables are in "additional_info"? #8

autonomobil opened this issue Jul 30, 2019 · 7 comments

Comments

@autonomobil
Copy link

autonomobil commented Jul 30, 2019

In the main.py the tracker gets updated with dets_all . dets_all = {'dets': dets, 'info': additional_info}.

What is additional_info ?
Or more general, what is each column in the detection .txt (for example 0000.txt)?

  • column 0 is frame number

  • column 1 is type (2=car)

  • columns 7 to 13 are x, y, z, theta, l, w, h

Is this correct?

What are columns 2 to 6?

Am I right, that the additional_info is not used by the main algorithm?

@xinshuoweng
Copy link
Owner

xinshuoweng commented Jul 30, 2019

Yes. The additional_info is not used by the main algorithm.

In details,
column 0 is frame number
column 1 is the object type
columns 2, 3, 4, 5 are 2D box
column 6 is confidence
columns 7-13 are 3D box
column 14 is the orientation.

@abhigoku10
Copy link

@autonomobil @xinshuoweng thanks for sharing the information of this , i wanted to know the details of the columns of 7-13 3D box values since the object detectors you have mentioned will it provided directly the values in the kitti data format , if not is there any code base which does this conversion since my object detector is different

@xinshuoweng
Copy link
Owner

Yes. The 3D bounding box in columns 7-13 is exactly the same as the KITTI format.

In brief,
columns 7-9 are the dimensions (height width length in meters)
columns 10-12 are the location (x, y, z in meters in camera coordinate)
columns 13 is rotation_y (rotation ry around Y-axis in camera coordinate [-pi, pi])

You can check out the details on the KITTI 3d object detection benchmark. There is a readme file when you download the object development toolkit (devkit_object.zip)

@vikyzeng
Copy link

vikyzeng commented Oct 12, 2019

@xinshuoweng I am really confused with the data format. In the main.py , you apply det[3] as theta. Which one is correct?

@xinshuoweng
Copy link
Owner

xinshuoweng commented Oct 12, 2019

Can you please let me know which line you are talking about? I cannot find det[3]

@vikyzeng
Copy link

vikyzeng commented Oct 12, 2019

In main.py line230-> KalmanBoxTracker.update.

new_theta = bbox3D[3]
if new_theta >= np.pi: new_theta -= np.pi * 2    # make the theta still in the range
if new_theta < -np.pi: new_theta += np.pi * 2
bbox3D[3] = new_theta

where bbox3D is det

@xinshuoweng
Copy link
Owner

This is explained inline 340, inside the function of “update(self, dets_all)”, each det is [x, y, z, theta, l, w, h]. So det[3] is theta. What are you confused about?

Basically, the order of the value in det is swapped in line 348, I guess that is what you are confused about. As long as you feed the data based on the format I have written in the readme, you are good to go.

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

4 participants