MCPcopy Create free account

hub / github.com/roboflow/supervision / functions

Functions1,714 in github.com/roboflow/supervision

Functionmain
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
Functionmain
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
Functionmain
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
Functionmain
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
Functionmain
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
Functionmain
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
Functionmain
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
Functionmain
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
Functionmain
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
Functionmain
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
Functionmain
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
Methodmap50
the mAP score at IoU threshold of `0.5`.
src/supervision/metrics/mean_average_precision.py:69
Methodmap50_95
the mAP score at IoU thresholds from `0.5` to `0.95`.
src/supervision/metrics/mean_average_precision.py:60
Methodmap75
the mAP score at IoU threshold of `0.75`.
src/supervision/metrics/mean_average_precision.py:74
Functionmask_to_rle
Deprecated. Use `supervision.detection.utils.converters.mask_to_rle`.
src/supervision/dataset/utils.py:30
Methodmean_with_mask
( axis: int | tuple[int, ...], )
src/supervision/metrics/mean_average_precision.py:1017
Methodmerge
Merge a list of `DetectionDataset` objects into a single `DetectionDataset` object. This method takes a list of `Detecti
src/supervision/dataset/core.py:231
Methodmerge
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
Functionmerge_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
Functionmerge_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
Functionmock_callback
Mock callback function for testing.
tests/detection/tools/test_inference_slicer.py:17
Functionmocked_get
(self, prop_id)
tests/utils/test_video.py:175
Functionmouse_event
(event: int, x: int, y: int, flags: int, param: Any)
examples/time_in_zone/scripts/draw_zones.py:40
Methodmulti_predict
(stracks: list[STrack], shared_kalman: KalmanFilter)
src/supervision/tracker/byte_tracker/single_object_track.py:63
Functionnegative_coords_callback
(_: np.ndarray)
tests/detection/tools/test_inference_slicer.py:283
Methodnormalise
(groups: list[list[int]])
tests/detection/test_compact_mask_iou.py:348
Methodnumpy
(self)
tests/classification/test_core.py:24
Functionobb_callback
(_: np.ndarray)
tests/detection/tools/test_inference_slicer.py:398
Methodoffsets
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
Methodon_prediction
(self, result: dict, frame: VideoFrame)
examples/time_in_zone/inference_stream_example.py:32
Methodon_prediction
(self, detections: sv.Detections, frame: VideoFrame)
examples/time_in_zone/ultralytics_stream_example.py:35
Methodon_prediction
(self, detections: sv.Detections, frame: VideoFrame)
examples/time_in_zone/rfdetr_stream_example.py:94
Functionone_image
()
tests/utils/conftest.py:28
Methodout_count
(self)
src/supervision/detection/line_zone.py:134
Methodout_count_per_class
(self)
src/supervision/detection/line_zone.py:142
Functionout_of_bounds_callback
(_: np.ndarray)
tests/detection/tools/test_inference_slicer.py:210
Methodplot
Plot the Mean Average Recall results. ![example_plot](\ https://media.roboflow.com/supervision-docs/metrics/mAR_plot_exa
src/supervision/metrics/mean_average_recall.py:185
Methodplot
Create confusion matrix plot and save it at selected location. Args: save_path: Path to save the plot. If not provided,
src/supervision/metrics/detection.py:660
Methodplot
Plot the mAP results. ![example_plot]( https://media.roboflow.com/supervision-docs/metrics/mAP_plot_example.png
src/supervision/metrics/mean_average_precision.py:180
Methodplot
Plot the recall results. ![example_plot]( https://media.roboflow.com/supervision-docs/metrics/recall_plot_example.png
src/supervision/metrics/recall.py:627
Methodplot
Plot the F1 results. ![example_plot]( https://media.roboflow.com/supervision-docs/metrics/f1_plot_example.png ){
src/supervision/metrics/f1_score.py:660
Methodplot
Plot the precision results. ![example_plot]( https://media.roboflow.com/supervision-docs/metrics/precision_plot_example.
src/supervision/metrics/precision.py:673
Functionplot_image
Plots image using matplotlib. Args: image: The frame to be displayed ImageType is a flexible type, accepting either `nu
src/supervision/utils/notebook.py:11
Functionplot_images_grid
Plots images in a grid using matplotlib. Args: images: A list of images as ImageType is a flexible type, accepting eithe
src/supervision/utils/notebook.py:50
Methodprecision_at_50
(self)
src/supervision/metrics/precision.py:555
Methodprecision_at_75
(self)
src/supervision/metrics/precision.py:559
Methodpredict
(self)
src/supervision/tracker/byte_tracker/single_object_track.py:51
Functionprediction_class_1
()
tests/metrics/conftest.py:129
Functionpredictions_confidence_ranking
()
tests/metrics/conftest.py:114
Functionpredictions_iou_064
()
tests/metrics/conftest.py:97
Functionpredictions_multiple_classes
()
tests/metrics/conftest.py:67
Methodpredictions_multiple_classes
(self)
tests/metrics/test_f1_score.py:12
Methodpredictions_multiple_classes
(self)
tests/metrics/test_recall.py:12
Methodpredictions_multiple_classes
(self)
tests/metrics/test_precision.py:11
Functionpredictions_no_overlap
()
tests/metrics/conftest.py:36
Methodpublic_method
(self)
tests/utils/test_internal.py:18
Methodpublic_method
(self)
tests/utils/test_internal.py:54
Methodpublic_property
(self)
tests/utils/test_internal.py:28
Methodpublic_property
(self)
tests/utils/test_internal.py:64
Functionreader_thread
()
src/supervision/utils/video.py:369
Methodrecall_at_50
(self)
src/supervision/metrics/recall.py:511
Methodrecall_at_75
(self)
src/supervision/metrics/recall.py:515
Methodreset
Clears all the time stamps from the deque.
src/supervision/utils/video.py:505
Methodreset
Reset internal metric state.
src/supervision/metrics/core.py:22
Methodreset
Reset the metric to its initial state, clearing all stored data.
src/supervision/metrics/mean_average_recall.py:314
Methodreset
Reset the metric to its initial state, clearing all stored data.
src/supervision/metrics/mean_average_precision.py:1288
Methodreset
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
Methodresolution_wh
(self)
src/supervision/utils/video.py:72
Functionrle_to_mask
Deprecated. Use `supervision.detection.utils.converters.rle_to_mask`.
src/supervision/dataset/utils.py:38
Functionsample_key_points
()
tests/conftest.py:17
Methodsave_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
Functionscene
()
tests/conftest.py:12
Functionsetup_and_teardown_files
()
tests/utils/test_file.py:31
Methodshape
Return ``(N, H, W)`` matching the dense mask convention. Returns: Tuple ``(N, H, W)``. Examples: ```pycon
src/supervision/detection/compact_mask.py:646
Functionsingle_image_tile
()
tests/utils/conftest.py:68
Functionsingle_image_tile_enforced_grid
()
tests/utils/conftest.py:73
Methodsplit
Splits the dataset into two parts (training and testing) using the provided split_ratio. Args: split_ratio:
src/supervision/dataset/core.py:157
Methodsplit
Splits the dataset into two parts (training and testing) using the provided split_ratio. Args: split_ratio:
src/supervision/dataset/core.py:824
Methodstack_or_none
( name: str, )
src/supervision/detection/core.py:2182
Functiontarget_class_1
()
tests/metrics/conftest.py:138
Functiontargets_50_50
()
tests/metrics/conftest.py:19
Functiontargets_iou_064
()
tests/metrics/conftest.py:106
Functiontargets_multiple_classes
()
tests/metrics/conftest.py:83
Methodtargets_multiple_classes
(self)
tests/metrics/test_f1_score.py:27
Methodtargets_multiple_classes
(self)
tests/metrics/test_recall.py:26
Methodtargets_multiple_classes
(self)
tests/metrics/test_precision.py:26
Functiontargets_no_overlap
()
tests/metrics/conftest.py:45
Functiontargets_two_objects_class_0
()
tests/metrics/conftest.py:53
Methodtest_2x_downscale
2x downscale of a 4x4 block mask halves dimensions.
tests/detection/test_compact_mask.py:1279
Methodtest_2x_upscale
2x upscale of a 2x2 mask doubles each pixel.
tests/detection/test_compact_mask.py:1257
Methodtest_all_compact
(self)
tests/detection/test_compact_mask_integration.py:156
Functiontest_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
Methodtest_all_false
All-False mask resizes to all-False regardless of dimensions.
tests/detection/test_compact_mask.py:1330
Methodtest_all_false_3x3
All-False 3x3 splits into three columns each [3].
tests/detection/test_compact_mask.py:994
Methodtest_all_false_masks
Zero-area masks should produce IoU = 0, not NaN.
tests/detection/test_compact_mask_iou.py:159
Methodtest_all_true
All-True mask resizes to all-True regardless of dimensions.
tests/detection/test_compact_mask.py:1351
Methodtest_all_true_2x2
All-True 2x2 splits into two columns each [0, 2].
tests/detection/test_compact_mask.py:985
Methodtest_already_exists_and_valid
Test download_assets when file already exists and is valid.
tests/assets/test_downloader.py:42
Methodtest_already_exists_but_corrupted
Test download_assets when file exists but is corrupted (re-downloads).
tests/assets/test_downloader.py:56
Methodtest_anchor_configurations
( self, detections: sv.Detections, polygon_zone: sv.PolygonZone, expected_resu
tests/detection/test_polygonzone.py:98
← previousnext →901–1,000 of 1,714, ranked by callers