def read_pothole_truth(filename, delimiter=","):
    """
    Read the ground truth for potholes

    Parameters
    ----------
    filename : str
        The full path of the file that contains the ground truth

    delimiter : str, default=","
        The delimiter that is used to seperate each element in each row

    Returns
    --------
    truth : dict{othole_label: (depth, length)}
    """
    truth = {}
    fp = open(filename, 'r')
    for line in fp.readline():
        segments = line.strip().split(delimiter)
        pothole = int(segments[0])
        depth = float(segments[1])
        length = float(segments[2])
        truth[pothole] = (depth, length)

    return truth