Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/roboflow/supervision
/ functions
Functions
1,714 in github.com/roboflow/supervision
⨍
Functions
1,714
◇
Types & classes
220
↳
Endpoints
53
Function
main
Calculating detections dwell time in zones, using video file. Args: zone_configuration_path: Path to the zone configuration JSON fil
examples/time_in_zone/inference_file_example.py:16
Function
main
Interactively draw polygons on images or video frames and save the annotations. Args: source_path: Path to the source image or video
examples/time_in_zone/scripts/draw_zones.py:128
Function
main
Script to stream videos using RTSP protocol. Args: video_directory: Directory containing video files to stream. number_of_st
examples/time_in_zone/scripts/stream_from_file.py:14
Function
main
Download a specific YouTube video by providing its URL. Args: url: The full URL of the YouTube video you wish to download. o
examples/time_in_zone/scripts/download_from_youtube.py:33
Function
main
Video Processing with Inference and ByteTrack. Args: source_video_path: Path to the source video file target_video_path: Pat
examples/tracking/inference_example.py:9
Function
main
Video Processing with YOLO and ByteTrack. Args: source_weights_path: Path to the source weights file source_video_path: Path
examples/tracking/ultralytics_example.py:7
Function
main
Vehicle Speed Estimation using Inference and Supervision. Args: source_video_path: Path to the source video file target_vide
examples/speed_estimation/inference_example.py:40
Function
main
Vehicle Speed Estimation using Ultralytics and Supervision. Args: source_video_path: Path to the source video file target_vi
examples/speed_estimation/ultralytics_example.py:39
Function
main
Vehicle Speed Estimation using YOLO-NAS and Supervision. Args: source_video_path: Path to the source video file target_video
examples/speed_estimation/yolo_nas_example.py:40
Function
main
Counting people in zones with Inference and Supervision. Args: zone_configuration_path: Path to the zone configuration JSON file
examples/count_people_in_zone/inference_example.py:130
Function
main
Counting people in zones with YOLO and Supervision. Args: zone_configuration_path: Path to the zone configuration JSON file
examples/count_people_in_zone/ultralytics_example.py:129
Method
map50
the mAP score at IoU threshold of `0.5`.
src/supervision/metrics/mean_average_precision.py:69
Method
map50_95
the mAP score at IoU thresholds from `0.5` to `0.95`.
src/supervision/metrics/mean_average_precision.py:60
Method
map75
the mAP score at IoU threshold of `0.75`.
src/supervision/metrics/mean_average_precision.py:74
Function
mask_to_rle
Deprecated. Use `supervision.detection.utils.converters.mask_to_rle`.
src/supervision/dataset/utils.py:30
Method
mean_with_mask
( axis: int | tuple[int, ...], )
src/supervision/metrics/mean_average_precision.py:1017
Method
merge
Merge a list of `DetectionDataset` objects into a single `DetectionDataset` object. This method takes a list of `Detecti
src/supervision/dataset/core.py:231
Method
merge
Concatenate multiple :class:`CompactMask` objects into one. All inputs must have the same ``image_shape``. Args: masks_l
src/supervision/detection/compact_mask.py:924
Function
merge_inner_detections_objects
Given N detections each of length 1 (exactly one object inside), combine them into a single detection object of length 1. The contained inner
src/supervision/detection/core.py:2860
Function
merge_inner_detections_objects_without_iou
Given N detections each of length 1 (exactly one object inside), combine them into a single detection object of length 1. The contained inner
src/supervision/detection/core.py:2888
Function
mock_callback
Mock callback function for testing.
tests/detection/tools/test_inference_slicer.py:17
Function
mocked_get
(self, prop_id)
tests/utils/test_video.py:175
Function
mouse_event
(event: int, x: int, y: int, flags: int, param: Any)
examples/time_in_zone/scripts/draw_zones.py:40
Method
multi_predict
(stracks: list[STrack], shared_kalman: KalmanFilter)
src/supervision/tracker/byte_tracker/single_object_track.py:63
Function
negative_coords_callback
(_: np.ndarray)
tests/detection/tools/test_inference_slicer.py:283
Method
normalise
(groups: list[list[int]])
tests/detection/test_compact_mask_iou.py:348
Method
numpy
(self)
tests/classification/test_core.py:24
Function
obb_callback
(_: np.ndarray)
tests/detection/tools/test_inference_slicer.py:398
Method
offsets
Return per-mask crop origins as ``(x1, y1)`` integer offsets. Returns: Array of shape ``(N, 2)`` with ``int32`` offsets.
src/supervision/detection/compact_mask.py:668
Method
on_prediction
(self, result: dict, frame: VideoFrame)
examples/time_in_zone/inference_stream_example.py:32
Method
on_prediction
(self, detections: sv.Detections, frame: VideoFrame)
examples/time_in_zone/ultralytics_stream_example.py:35
Method
on_prediction
(self, detections: sv.Detections, frame: VideoFrame)
examples/time_in_zone/rfdetr_stream_example.py:94
Function
one_image
()
tests/utils/conftest.py:28
Method
out_count
(self)
src/supervision/detection/line_zone.py:134
Method
out_count_per_class
(self)
src/supervision/detection/line_zone.py:142
Function
out_of_bounds_callback
(_: np.ndarray)
tests/detection/tools/test_inference_slicer.py:210
Method
plot
Plot the Mean Average Recall results. {
src/supervision/metrics/f1_score.py:660
Method
plot
Plot the precision results. 
src/supervision/metrics/precision.py:555
Method
precision_at_75
(self)
src/supervision/metrics/precision.py:559
Method
predict
(self)
src/supervision/tracker/byte_tracker/single_object_track.py:51
Function
prediction_class_1
()
tests/metrics/conftest.py:129
Function
predictions_confidence_ranking
()
tests/metrics/conftest.py:114
Function
predictions_iou_064
()
tests/metrics/conftest.py:97
Function
predictions_multiple_classes
()
tests/metrics/conftest.py:67
Method
predictions_multiple_classes
(self)
tests/metrics/test_f1_score.py:12
Method
predictions_multiple_classes
(self)
tests/metrics/test_recall.py:12
Method
predictions_multiple_classes
(self)
tests/metrics/test_precision.py:11
Function
predictions_no_overlap
()
tests/metrics/conftest.py:36
Method
public_method
(self)
tests/utils/test_internal.py:18
Method
public_method
(self)
tests/utils/test_internal.py:54
Method
public_property
(self)
tests/utils/test_internal.py:28
Method
public_property
(self)
tests/utils/test_internal.py:64
Function
reader_thread
()
src/supervision/utils/video.py:369
Method
recall_at_50
(self)
src/supervision/metrics/recall.py:511
Method
recall_at_75
(self)
src/supervision/metrics/recall.py:515
Method
reset
Clears all the time stamps from the deque.
src/supervision/utils/video.py:505
Method
reset
Reset internal metric state.
src/supervision/metrics/core.py:22
Method
reset
Reset the metric to its initial state, clearing all stored data.
src/supervision/metrics/mean_average_recall.py:314
Method
reset
Reset the metric to its initial state, clearing all stored data.
src/supervision/metrics/mean_average_precision.py:1288
Method
reset
Resets the internal state of the ByteTrack tracker. This method clears the tracking data, including tracked, lost, and remov
src/supervision/tracker/byte_tracker/core.py:157
Method
resolution_wh
(self)
src/supervision/utils/video.py:72
Function
rle_to_mask
Deprecated. Use `supervision.detection.utils.converters.rle_to_mask`.
src/supervision/dataset/utils.py:38
Function
sample_key_points
()
tests/conftest.py:17
Method
save_image
Save image to target directory with optional custom filename. Args: image: Image to save with shape `(height, width, 3)`
src/supervision/utils/image.py:531
Function
scene
()
tests/conftest.py:12
Function
setup_and_teardown_files
()
tests/utils/test_file.py:31
Method
shape
Return ``(N, H, W)`` matching the dense mask convention. Returns: Tuple ``(N, H, W)``. Examples: ```pycon
src/supervision/detection/compact_mask.py:646
Function
single_image_tile
()
tests/utils/conftest.py:68
Function
single_image_tile_enforced_grid
()
tests/utils/conftest.py:73
Method
split
Splits the dataset into two parts (training and testing) using the provided split_ratio. Args: split_ratio:
src/supervision/dataset/core.py:157
Method
split
Splits the dataset into two parts (training and testing) using the provided split_ratio. Args: split_ratio:
src/supervision/dataset/core.py:824
Method
stack_or_none
( name: str, )
src/supervision/detection/core.py:2182
Function
target_class_1
()
tests/metrics/conftest.py:138
Function
targets_50_50
()
tests/metrics/conftest.py:19
Function
targets_iou_064
()
tests/metrics/conftest.py:106
Function
targets_multiple_classes
()
tests/metrics/conftest.py:83
Method
targets_multiple_classes
(self)
tests/metrics/test_f1_score.py:27
Method
targets_multiple_classes
(self)
tests/metrics/test_recall.py:26
Method
targets_multiple_classes
(self)
tests/metrics/test_precision.py:26
Function
targets_no_overlap
()
tests/metrics/conftest.py:45
Function
targets_two_objects_class_0
()
tests/metrics/conftest.py:53
Method
test_2x_downscale
2x downscale of a 4x4 block mask halves dimensions.
tests/detection/test_compact_mask.py:1279
Method
test_2x_upscale
2x upscale of a 2x2 mask doubles each pixel.
tests/detection/test_compact_mask.py:1257
Method
test_all_compact
(self)
tests/detection/test_compact_mask_integration.py:156
Function
test_all_expected_annotators_have_tab_entries
Assert every annotator in EXPECTED_ANNOTATOR_TAB_GROUPS has a tab in the docs. Tests flat membership only — does not enforce which category each
tests/annotators/test_docs.py:88
Method
test_all_false
All-False mask resizes to all-False regardless of dimensions.
tests/detection/test_compact_mask.py:1330
Method
test_all_false_3x3
All-False 3x3 splits into three columns each [3].
tests/detection/test_compact_mask.py:994
Method
test_all_false_masks
Zero-area masks should produce IoU = 0, not NaN.
tests/detection/test_compact_mask_iou.py:159
Method
test_all_true
All-True mask resizes to all-True regardless of dimensions.
tests/detection/test_compact_mask.py:1351
Method
test_all_true_2x2
All-True 2x2 splits into two columns each [0, 2].
tests/detection/test_compact_mask.py:985
Method
test_already_exists_and_valid
Test download_assets when file already exists and is valid.
tests/assets/test_downloader.py:42
Method
test_already_exists_but_corrupted
Test download_assets when file exists but is corrupted (re-downloads).
tests/assets/test_downloader.py:56
Method
test_anchor_configurations
( self, detections: sv.Detections, polygon_zone: sv.PolygonZone, expected_resu
tests/detection/test_polygonzone.py:98
← previous
next →
901–1,000 of 1,714, ranked by callers