已弃用¶
这些功能已被淘汰,原因是存在更好的替代方案或在未来版本中可能出现问题。已弃用功能的有效期为五个后续版本,以便用户有时间过渡到更新的方法。
InferenceSlicer.__init__
中的overlap_filter_strategy
在InferenceSlicer.__init__
已弃用,并将在supervision-0.27.0
中移除。请使用overlap_strategy
。InferenceSlicer.__init__
中的overlap_ratio_wh
在InferenceSlicer.__init__
已弃用,并将在supervision-0.27.0
中移除。请使用overlap_wh
。sv.LMM
枚举已弃用,并将在supervision-0.31.0
中移除。请使用sv.VLM
。sv.Detections.from_lmm
属性已弃用,并将在supervision-0.31.0
中移除。请使用sv.Detections.from_vlm
。
已移除¶
0.26.0¶
supervision-0.26.0
中的sv.DetectionDataset.images
属性已被移除。请使用for path, image, annotation in dataset:
循环遍历图像,这样无需将所有图像加载到内存中。此外,使用images
参数(类型为Dict[str, np.ndarray]
)构建sv.DetectionDataset
已弃用并在supervision-0.26.0
中被移除。请改用路径列表List[str]
。sv.BoundingBoxAnnotator
的名称已弃用并在supervision-0.26.0
中被移除。它已重命名为sv.BoxAnnotator
。
0.24.0¶
sv.PolygonZone
中的frame_resolution_wh
参数已被移除。- Supervision 的安装方法
"headless"
和"desktop"
已移除,因为它们不再需要。pip install supervision[headless]
将安装基础库,并发出关于不存在的额外组件的无害警告。
0.23.0¶
ByteTrack
中的track_buffer
、track_thresh
和match_thresh
参数已弃用,并自supervision-0.23.0
起移除。请使用lost_track_buffer
、track_activation_threshold
和minimum_matching_threshold
。sv.PolygonZone
中的triggering_position
参数已自supervision-0.23.0
起移除。请使用triggering_anchors
。
0.22.0¶
supervision-0.22.0
起已移除sv.Detections.from_roboflow
。请使用Detections.from_inference
。supervision-0.22.0
起已移除sv.Color.white()
方法。请使用常量sv.Color.WHITE
。supervision-0.22.0
起已移除sv.Color.black()
方法。请使用常量sv.Color.BLACK
。supervision-0.22.0
起已移除sv.Color.red()
方法。请使用常量sv.Color.RED
。supervision-0.22.0
起已移除sv.Color.green()
方法。请使用常量sv.Color.GREEN
。supervision-0.22.0
起已移除sv.Color.blue()
方法。请使用常量sv.Color.BLUE
。supervision-0.22.0
起已移除sv.ColorPalette.default()
方法。请使用常量ColorPalette.DEFAULT
。supervision-0.22.0
时已移除sv.BoxAnnotator
,但sv.BoundingBoxAnnotator
已立即更名为sv.BoxAnnotator
。请使用BoxAnnotator
和LabelAnnotator
替换旧的sv.BoxAnnotator
。supervision-0.22.0
起已移除sv.FPSMonitor.__call__
方法。请使用属性sv.FPSMonitor.fps
。