Exemplo n.º 1
0
 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
Exemplo n.º 2
0
 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