Browse Source

Update 'README.md'

天问 1 year ago
parent
commit
3604104196
1 changed files with 14 additions and 0 deletions
  1. 14 0
      README.md

+ 14 - 0
README.md

@@ -1,2 +1,16 @@
 # supervision
 # 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)
+
+```