import os

from PIL import Image

from ultralytics import YOLO

# Load a model
# model = YOLO("yolov8n.yaml")  # build a new model from scratch
model = YOLO("best_ffc_11663.pt", 'detect')  # load a pretrained model (recommended for training)

###运动商品图片接口  real_boxes
results = model.predict(source="D:/workspace/datasets/videos_frontCam/Pictures/100_1688009712138.mp4", save=False)  # predict on an image
real_boxes = model.predictor.real_MovBox



