def obj_label_to_kitti_fmt(obj_label):
    """Converts an object label to kitti format
    [type, truncation, occlusion, alpha(observation angle),
    (x1, y1, x2, y2),
    (h, w, l),
    (x, y, z), ry,
    score]
    """

    return [
        obj_label.type, -1, -1, obj_label.alpha,
        obj_label.x1, obj_label.y1, obj_label.x2, obj_label.y2,
        obj_label.h, obj_label.w, obj_label.l,
        obj_label.t[0], obj_label.t[1], obj_label.t[2], obj_label.ry,
        obj_label.score
    ]