def check_inside_and_put(inf_table: InferenceTable, inf_header: BorderBox): if inf_header.box_is_inside_another(inf_table.bbox): inf_table.header_boxes.append(inf_header) return True return False
def check_inside_and_put(inf_table: InferenceTable, inf_cell: BorderBox): if inf_cell.box_is_inside_another(inf_table.bbox): inf_table.tags.append(inf_cell) return True return False