code: def dist_point2line(self, point, line):
      assert isinstance(line, tuple)
      point1, point2 = line
      d = abs(np.cross(point2 - point1, point - point1)) / (
          norm(point2 - point1) + 1e-8
      )
      return d
  
imports: import cv2
  import numpy
  from ppocr.utils.utility import check_install
  from numpy.linalg import norm
label_desc: Use image node_id 11 for calling the DRRGTargets obj's underlying member method code with example usage: obj.dist_point2line(point, line) and returns: d