退购1.1定位算法

This commit is contained in:
jiajie555
2023-08-10 12:25:23 +08:00
commit 11e12f1899
371 changed files with 46027 additions and 0 deletions

16
detect.py Normal file
View File

@ -0,0 +1,16 @@
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