lane/line.py
def smoothing(lines, prev_n_lines=3):
    # collect lines & print average line
    """
    #---------------------
    # This function takes in lines, averages last n lines
    # and returns an average line
    #
    """
    lines = np.squeeze(
        lines
    )  # remove single dimensional entries from the shape of an array
    avg_line = np.zeros((720))

    for i, line in enumerate(reversed(lines)):
        if i == prev_n_lines:
            break
        avg_line += line
    avg_line = avg_line / prev_n_lines

    return avg_line

    #---------------------
    # This function takes in lines, averages last n lines
    # and returns an average line
    #
    
This function takes in lines, averages last n lines
and returns an average line
This function takes in lines averages last n lines and returns an average line
def smoothing(lines, prev_n_lines=3):
    lines = np.squeeze(
        lines
    )  
    avg_line = np.zeros((720))
    for i, line in enumerate(reversed(lines)):
        if i == prev_n_lines:
            break
        avg_line += line
    avg_line = avg_line / prev_n_lines
    return avg_line
def smoothing ( lines , prev_n_lines = 3 ) : lines = np . squeeze ( lines ) avg_line = np . zeros ( ( 720 ) ) for i , line in enumerate ( reversed ( lines ) ) : if i == prev_n_lines : break avg_line += line avg_line = avg_line / prev_n_lines return avg_line
This function takes in lines, averages last n lines
 and returns an average line
This function takes in lines averages last n lines and returns an average line
# collect lines & print average line """
    #---------------------
    # This function takes in lines, averages last n lines
    # and returns an average line
    #
    """ # remove single dimensional entries from the shape of an array
lines
prev_n_lines