reusable computer vision tools可重用的计算机视觉工具 https://github.com/roboflow/supervision

天问 3604104196 Update 'README.md' 1 year ago
README.md 3604104196 Update 'README.md' 1 year ago

README.md

supervision

pip install supervision

import cv2
import supervision as sv
from ultralytics import YOLO

image = cv2.imread(...)
model = YOLO('yolov8s.pt')
result = model(image)[0]
detections = sv.Detections.from_ultralytics(result)

len(detections)