def get_row_coords(horiz_line_coords):
    """Get top-left and bottom-right coordinates for each row from a list of horizontal lines"""
    row_coords = []
    for i in range(1, len(horiz_line_coords)):
        if horiz_line_coords[i][1] - horiz_line_coords[i-1][3] > 1:
            row_coords.append((horiz_line_coords[i-1][0], horiz_line_coords[i-1][1],
                               horiz_line_coords[i][2], horiz_line_coords[i][3]))
    return row_coords