使用YOLOv8 检测图片中的动物
import cv2
from ultralytics import YOLO
model = YOLO(model="yolov8n.pt")
results = model(source="animal2.jpg")
result = results[0]
img = result.plot(
import cv2
from ultralytics import YOLO
model = YOLO(model="yolov8n.pt")
results = model(source="animal2.jpg")
result = results[0]
img = result.plot(