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.
- The
track_buffer
,track_thresh
, andmatch_thresh
parameters inByterTrack
are deprecated and will be removed insupervision-0.23.0
. Uselost_track_buffer,
track_activation_threshold
, andminimum_matching_threshold
instead. - The
triggering_position
parameter insv.PolygonZone
will be removed insupervision-0.23.0
. Usetriggering_anchors
instead. - The
frame_resolution_wh
parameter insv.PolygonZone
will be removed insupervision-0.24.0
. - Constructing
DetectionDataset
andClassificationDataset
with parameterimages
asDict[str, np.ndarray]
will be removed insupervision-0.26.0
. Please pass a list of pathsList[str]
instead. - The
DetectionDataset.images
property will be removed insupervision-0.26.0
. Please loop over images withfor path, image, annotation in dataset:
, as that does not require loading all images into memory. BoundingBoxAnnotator
has been renamed toBoxAnnotator
after the old implementation ofBoxAnnotator
has been removed.BoundingBoxAnnotator
will be removed insupervision-0.26.0
.
Removed¶
Detections.from_froboflow
is removed as ofsupervision-0.22.0
. UseDetections.from_inference
instead.- The method
Color.white()
was removed as ofsupervision-0.22.0
. Use the constantColor.WHITE
instead. - The method
Color.black()
was removed as ofsupervision-0.22.0
. Use the constantColor.BLACK
instead. - The method
Color.red()
was removed as ofsupervision-0.22.0
. Use the constantColor.RED
instead. - The method
Color.green()
was removed as ofsupervision-0.22.0
. Use the constantColor.GREEN
instead. - The method
Color.blue()
was removed as ofsupervision-0.22.0
. Use the constantColor.BLUE
instead. - The method
ColorPalette.default()
was removed as ofsupervision-0.22.0
. Use the constantColorPalette.DEFAULT
instead. BoxAnnotator
was removed as ofsupervision-0.22.0
, howeverBoundingBoxAnnotator
was immediately renamed toBoxAnnotator
. UseBoxAnnotator
andLabelAnnotator
instead of the oldBoxAnnotator
.- The method
FPSMonitor.__call__
was removed as ofsupervision-0.22.0
. Use the attributeFPSMonitor.fps
instead.