code: def combine_results(self, results):
      numGlobalCareGt = 0
      numGlobalCareDet = 0
      matchedSum = 0
      for result in results:
          numGlobalCareGt += result["gtCare"]
          numGlobalCareDet += result["detCare"]
          matchedSum += result["detMatched"]
  
      methodRecall = (
          0
          if numGlobalCareGt == 0
          else float(matchedSum) / numGlobalCareGt
      )
      methodPrecision = (
          0
          if numGlobalCareDet == 0
          else float(matchedSum) / numGlobalCareDet
      )
      methodHmean = (
          0
          if methodRecall + methodPrecision == 0
          else 2
          * methodRecall
          * methodPrecision
          / (methodRecall + methodPrecision)
      )
      methodMetrics = {
          "precision": methodPrecision,
          "recall": methodRecall,
          "hmean": methodHmean,
      }
  
      return methodMetrics
  
file_path: PaddleOCR/ppocr/metrics/eval_det_iou.py
imports: from collections import namedtuple
  import numpy
  from shapely.geometry import Polygon
label_desc: Use image node_id 3 for calling the DetectionIoUEvaluator obj's underlying member method code with example usage: obj.combine_results(results) and returns: methodMetrics