code: def load_det_results(det_file, num_frames):
      assert os.path.exists(det_file) and os.path.isfile(
          det_file
      ), "Error: det_file: {} not exist or not a file.".format(det_file)
      labels = np.loadtxt(det_file, dtype="float32", delimiter=",")
      results_list = []
      for frame_i in range(0, num_frames):
          results = {"bbox": [], "score": []}
          lables_with_frame = labels[labels[:, 0] == frame_i + 1]
          for l in lables_with_frame:
              results["bbox"].append(l[1:5])
              results["score"].append(l[5])
          results_list.append(results)
      return results_list
  
imports: import os
  import cv2
  import time
  import paddle
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: load_det_results(det_file, num_frames) and returns: results_list