命令行启动:
yolo task=detect mode=predict model=./yolov8n.pt source="./ultralytics/asset/bus.jpg"
python命令启动:
from ultraly import YOLO
yolo = YOLO("./yolov8n.pt",task="detect")
resoult=yolo(source="./ultralytics/assets/bus.jpg")
配置文件在default.yaml中
source =(screen检测屏幕 0打开电脑摄像头,对电脑摄像头录制的内容进行检测 )
save=true 保存检测内容
conf=0.05 检测阈值
标签:基本,detect,pt,方式,检测,yolo,jpg,yolov8,source From: https://www.cnblogs.com/guoziheng/p/17841135.html