code: def detect_person(img, detector):
      bboxes, kpss = detector.detect(img)
      bboxes = np.round(bboxes[:, :4]).astype(np.int)
      kpss = np.round(kpss).astype(np.int)
      kpss[:, :, 0] = np.clip(kpss[:, :, 0], 0, img.shape[1])
      kpss[:, :, 1] = np.clip(kpss[:, :, 1], 0, img.shape[0])
      vbboxes = bboxes.copy()
      vbboxes[:, 0] = kpss[:, 0, 0]
      vbboxes[:, 1] = kpss[:, 0, 1]
      vbboxes[:, 2] = kpss[:, 4, 0]
      vbboxes[:, 3] = kpss[:, 4, 1]
      return bboxes, vbboxes
  
file_path: insightface/examples/person_detection/scrfd_person.py
imports: import datetime
  import numpy
  import os
  import os.path
  import glob
  import cv2
  import insightface
label_desc: Use image node_id 1 for calling a global function with example usage: detect_person(img, detector) and returns: bboxes,  vbboxes