code: def get(self, img, face):
      bbox = face.bbox
      w, h = (bbox[2] - bbox[0]), (bbox[3] - bbox[1])
      center = (bbox[2] + bbox[0]) / 2, (bbox[3] + bbox[1]) / 2
      rotate = 0
      _scale = self.input_size[0] / (max(w, h) * 1.5)
      # print('param:', img.shape, bbox, center, self.input_size, _scale, rotate)
      aimg, M = face_align.transform(
          img, center, self.input_size[0], _scale, rotate
      )
      input_size = tuple(aimg.shape[0:2][::-1])
      # assert input_size==self.input_size
      blob = cv2.dnn.blobFromImage(
          aimg,
          1.0 / self.input_std,
          input_size,
          (self.input_mean, self.input_mean, self.input_mean),
          swapRB=True,
      )
      pred = self.session.run(
          self.output_names, {self.input_name: blob}
      )[0][0]
      if pred.shape[0] >= 3000:
          pred = pred.reshape((-1, 3))
      else:
          pred = pred.reshape((-1, 2))
      if self.lmk_num < pred.shape[0]:
          pred = pred[self.lmk_num * -1 :, :]
      pred[:, 0:2] += 1
      pred[:, 0:2] *= self.input_size[0] // 2
      if pred.shape[1] == 3:
          pred[:, 2] *= self.input_size[0] // 2
  
      IM = cv2.invertAffineTransform(M)
      pred = face_align.trans_points(pred, IM)
      face[self.taskname] = pred
      if self.require_pose:
          P = transform.estimate_affine_matrix_3d23d(
              self.mean_lmk, pred
          )
          s, R, t = transform.P2sRt(P)
          rx, ry, rz = transform.matrix2angle(R)
          pose = np.array([rx, ry, rz], dtype=np.float32)
          face["pose"] = pose  # pitch, yaw, roll
      return pred
  
file_path: insightface/python-package/insightface/model_zoo/landmark.py
imports: from __future__ import division
  import numpy
  import cv2
  import onnx
  import onnxruntime
  from ..utils import face_align
  from ..utils import transform
  from ..data import get_object
label_desc: Use image node_id 3 for calling the Landmark obj's underlying member method code with example usage: obj.get(img, face) and returns: pred