code: def __init__(
      self,
      mode,
      gt_mat_dir,
      character_dict_path,
      main_indicator="f_score_e2e",
      **kwargs,
  ):
      self.mode = mode
      self.gt_mat_dir = gt_mat_dir
      self.label_list = get_dict(character_dict_path)
      self.max_index = len(self.label_list)
      self.main_indicator = main_indicator
      self.reset()
  
file_path: PaddleOCR/ppocr/metrics/e2e_metric.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from ppocr.utils.e2e_metric.Deteval import get_socre_A, get_socre_B, combine_results
  from ppocr.utils.e2e_utils.extract_textpoint_slow import get_dict
label_desc: Use image node_id 1 to create a new E2EMetric object from inherited base classes: object with example: obj = E2EMetric(mode, gt_mat_dir, character_dict_path, main_indicator)