code: def gather_measure(self, raw_metrics):
      raw_metrics = [
          image_metrics
          for batch_metrics in raw_metrics
          for image_metrics in batch_metrics
      ]
  
      result = self.evaluator.combine_results(raw_metrics)
  
      precision = AverageMeter()
      recall = AverageMeter()
      fmeasure = AverageMeter()
  
      precision.update(result["precision"], n=len(raw_metrics))
      recall.update(result["recall"], n=len(raw_metrics))
      fmeasure_score = (
          2
          * precision.val
          * recall.val
          / (precision.val + recall.val + 1e-8)
      )
      fmeasure.update(fmeasure_score)
  
      return {
          "precision": precision,
          "recall": recall,
          "fmeasure": fmeasure,
      }
  
file_path: PaddleOCR/benchmark/PaddleOCR_DBNet/utils/ocr_metric/icdar2015/quad_metric.py
imports: import numpy
  from .detection.iou import DetectionIoUEvaluator
label_desc: Use image node_id 5 for calling the QuadMetric obj's underlying member method code with example usage: obj.gather_measure(raw_metrics) and returns: dict