code: def __init__(
      self,
      is_output_polygon=False,
      iou_constraint=0.5,
      area_precision_constraint=0.5,
  ):
      self.is_output_polygon = is_output_polygon
      self.iou_constraint = iou_constraint
      self.area_precision_constraint = area_precision_constraint
  
file_path: PaddleOCR/benchmark/PaddleOCR_DBNet/utils/ocr_metric/icdar2015/detection/iou.py
imports: from collections import namedtuple
  import numpy
  from shapely.geometry import Polygon
  import cv2
label_desc: Use image node_id 1 to create a new DetectionIoUEvaluator object from inherited base classes: object with example: obj = DetectionIoUEvaluator(is_output_polygon, iou_constraint, area_precision_constraint)