KITTI 3D annotation format

Each frame is a Velodyne LiDAR scan, a camera image, a calibration file and a text file with one line per 3D box.

Data
Point clouds
Labels
Cuboids
Files
.bin, .txt, .png
Import / export
Yes / Yes
The format

What is the KITTI 3D format?

KITTI is a benchmark suite for autonomous driving from the Karlsruhe Institute of Technology and the Toyota Technological Institute at Chicago, recorded with cameras and a Velodyne LiDAR. Its 3D object detection format pairs every LiDAR scan with a camera image, a calibration file and a label file.

A label line has the object type, truncation, occlusion, the observation angle alpha, the 2D box in the image, the 3D size (height width length) and location (x y z) in metres in camera coordinates, and the yaw rotation_y. calib/*.txt holds the projection matrices P0–P3, R0_rect and Tr_velo_to_cam, which connect the LiDAR to the cameras.

Files

Folder structure and an example

Folder structure for import
kitti3d_project
├── calib
│   ├── 000000.txt
│   └── 000001.txt
├── image_2
│   ├── 000000.png
│   └── 000001.png
├── label_2
│   ├── 000000.txt
│   └── 000001.txt
└── velodyne
    ├── 000000.bin
    └── 000001.bin
label_2/000000.txt
Car -1.00 -1 1.90 434.56 225.91 592.44 319.73 1.44 1.64 3.78 -3.03 1.57 13.30 1.68
calib/000000.txt
P0: 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
P1: 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
P2: 721.5377197265625 0.0 609.559326171875 0.0 0.0 721.5377197265625 172.85400390625 0.0 0.0 0.0 1.0 0.0
P3: 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
R0_rect: 1.0 0.0 0.0 0.0 1.0 0.0 0.0 0.0 1.0
Tr_velo_to_cam: 0.00023477392 -0.99994415 -0.010563477 -0.0027968169 0.010449408 0.0105653545 -0.9998896 -0.07510879 0.99994534 0.0001243655 0.010451303 -0.2721328
Tr_imu_to_velo: 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
In and out

Import and export KITTI 3D in Supervisely

Import KITTI 3D into Supervisely

  • Import data (Auto Import)

    Drop a KITTI folder or archive into a point cloud project: scans, labels, calibration and camera images.

  • Import KITTI 3D

    Imports a sample of the original KITTI dataset (100 to 500 scenes) or a custom archive from Team Files. Only the left color camera images are used.

Export from Supervisely to KITTI 3D

  • Export to KITTI 3D

    Exports a point cloud project: scenes with labels go to training, scenes without to testing, and scenes without a photo context are skipped.

All apps are in the Ecosystem, under Import and Export. Every project is stored in Supervisely JSON in between.

Conversion

Converting KITTI 3D to and from Supervisely JSON

KITTI 3DSupervisely JSONNotes
velodyne/*.binpoint cloud .pcd in pointcloud/The LiDAR intensity is kept in a color channel of the point cloud.
label_2 linecuboid_3d with position, rotation, dimensionsThe box is moved from camera to LiDAR coordinates with the calibration; rotation_y becomes the yaw, rotation.z.
object type (Car, Pedestrian, …)class with the cuboid_3d shape
image_2/*.png and calibphoto context in related_imagesCamera matrices go to sensorsData of the image.
training, testingscenes with and without cuboidsAs Export to KITTI 3D sorts them.