退购1.1定位算法
This commit is contained in:
16
detect.py
Normal file
16
detect.py
Normal 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
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user