code: def __init__(
      self,
      orientation_thr=2.0,
      resample_step=8.0,
      num_min_comps=9,
      num_max_comps=600,
      min_width=8.0,
      max_width=24.0,
      center_region_shrink_ratio=0.3,
      comp_shrink_ratio=1.0,
      comp_w_h_ratio=0.3,
      text_comp_nms_thr=0.25,
      min_rand_half_height=8.0,
      max_rand_half_height=24.0,
      jitter_level=0.2,
      **kwargs,
  ):
      super().__init__()
      self.orientation_thr = orientation_thr
      self.resample_step = resample_step
      self.num_max_comps = num_max_comps
      self.num_min_comps = num_min_comps
      self.min_width = min_width
      self.max_width = max_width
      self.center_region_shrink_ratio = center_region_shrink_ratio
      self.comp_shrink_ratio = comp_shrink_ratio
      self.comp_w_h_ratio = comp_w_h_ratio
      self.text_comp_nms_thr = text_comp_nms_thr
      self.min_rand_half_height = min_rand_half_height
      self.max_rand_half_height = max_rand_half_height
      self.jitter_level = jitter_level
      self.eps = 1e-8
  
imports: import cv2
  import numpy
  from ppocr.utils.utility import check_install
  from numpy.linalg import norm
label_desc: Use image node_id 1 to create a new DRRGTargets object from inherited base classes: object with example: obj = DRRGTargets(orientation_thr, resample_step, num_min_comps, num_max_comps, min_width, max_width, center_region_shrink_ratio, comp_shrink_ratio, comp_w_h_ratio, text_comp_nms_thr, min_rand_half_height, max_rand_half_height, jitter_level)