Advertisement

supervision computer vision visualizing assisting tool

阅读量:

参考如下链接:
https://supervision.roboflow.com/latest/
https://github.com/roboflow/supervision/tree/develop/examples

版本信息:

复制代码
    pip install -U supervision
    
    
      
    

ultralytics-8.1.35(版本需高于8.1,否则可能引发AttributeError: ‘Results’ object has no attribute ‘obb’的错误)
supervision 0.16.0

简易示例:

复制代码
    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)
    
    
      
      
      

全部评论 (0)

还没有任何评论哟~