reusable computer vision tools可重用的计算机视觉工具 https://github.com/roboflow/supervision
|
1 year ago | |
---|---|---|
README.md | 1 year ago |
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)