utils.object3d_kitti

Classes

Object3d

Object3d(line = None, label = None)

Attributes

alpha instance-attribute
alpha = float(label[3])
box2d instance-attribute
box2d = np.array((float(label[4]), float(label[5]), float(label[6]), float(label[7])), dtype=np.float32)
cls_id instance-attribute
cls_id = self.cls_type_to_id(self.cls_type)
cls_type instance-attribute
cls_type = label[0]
dis_to_cam instance-attribute
dis_to_cam = np.linalg.norm(self.loc)
h instance-attribute
h = float(label[8])
l instance-attribute
l = float(label[10])
level instance-attribute
level = self.get_kitti_obj_level()
level_str instance-attribute
level_str = None
loc instance-attribute
loc = np.array((float(label[11]), float(label[12]), float(label[13])), dtype=np.float32)
occlusion instance-attribute
occlusion = float(label[2])
ry instance-attribute
ry = float(label[14])
score instance-attribute
score = float(label[15]) if label.__len__() == 16 else -1.0
src instance-attribute
src = line
truncation instance-attribute
truncation = float(label[1])
type instance-attribute
type = label[0]
w instance-attribute
w = float(label[9])

Functions

cls_type_to_id
cls_type_to_id(cls_type)
get_kitti_obj_level
get_kitti_obj_level()

Functions

get_objects_from_label

get_objects_from_label(label_file)