code: def detect_folder(self, img_fold, result_path):
      img_fold = Path(img_fold)
      result_path = Path(result_path)
      result_path.mkdir(parents=True, exist_ok=True)
  
      img_name_list = filter(
          lambda x: str(x).endswith(".png") or str(x).endswith(".jpg"),
          img_fold.iterdir(),
      )
      img_name_list = list(img_name_list)
      print(f"find {len(img_name_list)} images")
  
      for img_path in tqdm(img_name_list):
          img = cv2.imread(str(img_path), 1)
          img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
  
          srcimg = net.detect(img)
          save_path = str(
              result_path / img_path.name.replace(".png", ".jpg")
          )
          cv2.imwrite(save_path, srcimg)
  
file_path: PaddleDetection/deploy/third_engine/demo_onnxruntime/infer_demo.py
imports: import cv2
  import numpy
  import argparse
  import onnxruntime
  from pathlib import Path
  from tqdm import tqdm
label_desc: Use image node_id 6 for calling the PicoDet obj's underlying member method code with example usage: obj.detect_folder(img_fold, result_path) without return types