learn-yolo/06.旋转目标检测.py

9 lines
210 B
Python

from ultralytics import YOLO
# 加载预训练模型
model = YOLO('models/yolo11n-obb.pt')
results = model('./resources/图像分类.png',save= True)
for result in results:
obb = result.obb
print(obb)