Files
supervision/docs/deprecated.md
T
a5b51a11e5 Chore CI by adding checks for links and references (#2113)
* Chore CI by adding checks for links and references
* Potential fix for code scanning alert no. 6: Workflow does not contain permissions
* Fix markdown image formatting in metrics documentation
* Update all `docs` links to use absolute URLs and fix broken references in documentation and workflows.
* Fix broken `albumentations` links in dataset processing documentation
* lycheeVersion: v0.22.0
* Refactor CI link check workflow to use lychee config file for cleaner argument management
* add TODOs for future file type support
* Fix header formatting for example plots across metric files

---------

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-02-02 17:01:19 +01:00

4.2 KiB

comments, status
comments status
true deprecated

Deprecated

These features are phased out due to better alternatives or potential issues in future versions. Deprecated functionalities are supported for five subsequent releases, providing time for users to transition to updated methods.

  • overlap_filter_strategy in InferenceSlicer.__init__ is deprecated and will be removed in supervision-0.27.0. Use overlap_strategy instead.
  • overlap_ratio_wh in InferenceSlicer.__init__ is deprecated and will be removed in supervision-0.27.0. Use overlap_wh instead.
  • sv.LMM enum is deprecated and will be removed in supervision-0.31.0. Use sv.VLM instead.
  • sv.Detections.from_lmm property is deprecated and will be removed in supervision-0.31.0. Use sv.Detections.from_vlm instead.

Removed

0.26.0

  • The sv.DetectionDataset.images property has been removed in supervision-0.26.0. Please loop over images with for path, image, annotation in dataset:, as that does not require loading all images into memory. Also, constructing sv.DetectionDataset with parameter images as Dict[str, np.ndarray] is deprecated and has been removed in supervision-0.26.0. Please pass a list of paths List[str] instead.
  • The name sv.BoundingBoxAnnotator is deprecated and has been removed in supervision-0.26.0. It has been renamed to sv.BoxAnnotator.

0.24.0

  • The frame_resolution_wh parameter in sv.PolygonZone has been removed.
  • Supervision installation methods "headless" and "desktop" were removed, as they are no longer needed. pip install supervision[headless] will install the base library and harmlessly warn of non-existent extras.

0.23.0

  • The track_buffer, track_thresh, and match_thresh parameters in ByteTrack are deprecated and were removed as of supervision-0.23.0. Use lost_track_buffer, track_activation_threshold, and minimum_matching_threshold instead.
  • The triggering_position parameter in sv.PolygonZone was removed as of supervision-0.23.0. Use triggering_anchors instead.

0.22.0

  • sv.Detections.from_roboflow is removed as of supervision-0.22.0. Use Detections.from_inference instead.
  • The method sv.Color.white() was removed as of supervision-0.22.0. Use the constant sv.Color.WHITE instead.
  • The method sv.Color.black() was removed as of supervision-0.22.0. Use the constant sv.Color.BLACK instead.
  • The method sv.Color.red() was removed as of supervision-0.22.0. Use the constant sv.Color.RED instead.
  • The method sv.Color.green() was removed as of supervision-0.22.0. Use the constant sv.Color.GREEN instead.
  • The method sv.Color.blue() was removed as of supervision-0.22.0. Use the constant sv.Color.BLUE instead.
  • The method sv.ColorPalette.default() was removed as of supervision-0.22.0. Use the constant ColorPalette.DEFAULT instead.
  • sv.BoxAnnotator was removed as of supervision-0.22.0, however sv.BoundingBoxAnnotator was immediately renamed to sv.BoxAnnotator. Use BoxAnnotator and LabelAnnotator instead of the old sv.BoxAnnotator.
  • The method sv.FPSMonitor.__call__ was removed as of supervision-0.22.0. Use the attribute sv.FPSMonitor.fps instead.