mcordts / cityscapesScripts

README and scripts for the Cityscapes Dataset
MIT License
2.16k stars 606 forks source link

convert to kitti format #160

Open Heiheicxx opened 2 years ago

Heiheicxx commented 2 years ago

how to transform 3D-gt to kitti label?

Heiheicxx commented 2 years ago

000000 box3d_annotation.initialize_box(size=box.dimensions, quaternion=box.rotation, center=box.center, coordinate_system=CRS_V) #CRS_V

size_S, center_S, rotation_S = box3d_annotation.get_parameters(coordinate_system=CRS_S)

I get center_S by such code,and then dispaly used kitii tool but it seems the center_S is wrong

ncgaehle commented 2 years ago

Please check where the center of the Box ist. In Kitti it might be at the bottom side of the box, while Cityscapes might have the center at the actual center. Hence, the box seems to be shifted by height / 2.

Heiheicxx commented 2 years ago

Please check where the center of the Box ist. In Kitti it might be at the bottom side of the box, while Cityscapes might have the center at the actual center. Hence, the box seems to be shifted by height / 2.

thanks! it works right!