docstr: @param sub_metrics: configs of sub_metric
  @param main_matric: main_matric for save best_model
  @param kwargs:
docstr_tok: ["@","param","sub_metrics",":","configs","of","sub_metric","@","param","main_matric",":","main_matric","for","save","best_model","@","param","kwargs",":"]
code: def __init__(
      self,
      main_indicator="acc",
      compute_bbox_metric=False,
      box_format="xyxy",
      del_thead_tbody=False,
      **kwargs,
  ):
      """
  
      @param sub_metrics: configs of sub_metric
      @param main_matric: main_matric for save best_model
      @param kwargs:
      """
      self.structure_metric = TableStructureMetric(
          del_thead_tbody=del_thead_tbody
      )
      self.bbox_metric = DetMetric() if compute_bbox_metric else None
      self.main_indicator = main_indicator
      self.box_format = box_format
      self.reset()
  
file_path: PaddleOCR/ppocr/metrics/table_metric.py
imports: import numpy
  from ppocr.metrics.det_metric import DetMetric
label_desc: Use image node_id 1 to create a new TableMetric object from inherited base classes: object with example: obj = TableMetric(main_indicator, compute_bbox_metric, box_format, del_thead_tbody)