I want to save the results the prediction of Yolo v8. I know how so set the path or project/name but I don't want just any file name, e.g. "image0.jpg". I want to specify the file name to something like "custom-name.jpg". I want to iteratively detect human pose on a number of images from a directory.
model = YOLO("./yolov8x-pose.pt")
for file in os.listdir(dir_path):
img = cv2.imread(file)
results = model(source=img, save=True, project='/../place')
I want to specify the file names of the results in the folder, to either the original file name or something close.