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
Method
__init__
(self, boxes, names: dict[int, str], length: int = 0)
tests/helpers.py:290
Method
__init__
(self, bboxes_xyxy, confidence, labels)
tests/helpers.py:304
Method
__init__
(self, prediction: _FakeYoloNasPrediction)
tests/helpers.py:313
Method
__init__
(self, poses, labels=None)
tests/helpers.py:320
Method
__init__
(self, prediction: _FakeYoloNasKeyPoint, class_names=None)
tests/helpers.py:329
Method
__init__
(self, x, y, visibility=1.0)
tests/helpers.py:335
Method
__init__
(self, landmarks: list[_FakeMediapipeLandmark])
tests/helpers.py:342
Method
__init__
( self, pose_landmarks: list[list[_FakeMediapipeLandmark]] | _FakeMediapipePose
tests/helpers.py:347
Method
__init__
(self)
tests/utils/test_internal.py:13
Method
__init__
(self, value: np.ndarray)
tests/classification/test_core.py:12
Method
__init__
(self)
examples/traffic_analysis/inference_example.py:32
Method
__init__
( self, roboflow_api_key: str, model_id: str, source_video_path: str,
examples/traffic_analysis/inference_example.py:76
Method
__init__
(self)
examples/traffic_analysis/ultralytics_example.py:30
Method
__init__
( self, source_weights_path: str, source_video_path: str, target_video_path: s
examples/traffic_analysis/ultralytics_example.py:74
Method
__init__
(self, zone_configuration_path: str, classes: list[int])
examples/time_in_zone/inference_stream_example.py:18
Method
__init__
(self, zone_configuration_path: str, classes: list[int])
examples/time_in_zone/ultralytics_stream_example.py:21
Method
__init__
(self, zone_configuration_path: str, classes: list[int])
examples/time_in_zone/rfdetr_stream_example.py:80
Method
__init__
Initializes the FPSBasedTimer with the specified frames per second rate. Args: fps (float): The frame rate of the video stream. D
examples/time_in_zone/utils/timers.py:21
Method
__init__
Initializes the ClockBasedTimer.
examples/time_in_zone/utils/timers.py:64
Method
__init__
(self, source: np.ndarray, target: np.ndarray)
examples/speed_estimation/inference_example.py:26
Method
__init__
(self, source: np.ndarray, target: np.ndarray)
examples/speed_estimation/ultralytics_example.py:25
Method
__init__
(self, source: np.ndarray, target: np.ndarray)
examples/speed_estimation/yolo_nas_example.py:26
Method
__iter__
Iterate over the images and annotations in the dataset. Yields: Tuples containing the image path, image data, and its an
src/supervision/dataset/core.py:124
Method
__iter__
Iterate over the images and annotations in the dataset. Yields: Tuples containing the image path, image data, and its an
src/supervision/dataset/core.py:789
Method
__iter__
Iterates over the Detections object and yield a tuple of `(xyxy, mask, confidence, class_id, tracker_id, data)` for each detection.
src/supervision/detection/core.py:180
Method
__iter__
Iterate over masks as dense ``(H, W)`` boolean arrays.
src/supervision/detection/compact_mask.py:640
Method
__iter__
Iterates over the Keypoint object and yield a tuple of `(xy, keypoint_confidence, class_id, data)` for each object detection.
src/supervision/key_points/core.py:345
Method
__len__
(self)
src/supervision/dataset/core.py:43
Method
__len__
(self)
src/supervision/dataset/core.py:110
Method
__len__
(self)
src/supervision/dataset/core.py:775
Method
__len__
Returns the number of colors in the palette. Returns: The number of colors.
src/supervision/draw/color.py:537
Method
__len__
Returns the number of detections in the Detections object.
src/supervision/detection/core.py:174
Method
__len__
Return the number of masks. Returns: Number of masks N. Examples: ```pycon >>> from supervision.
src/supervision/detection/compact_mask.py:620
Method
__len__
Returns the number of classifications.
src/supervision/classification/core.py:46
Method
__len__
Returns the number of objects in the `sv.KeyPoints` object. Returns: The number of objects. Example:
src/supervision/key_points/core.py:325
Method
__len__
(self)
tests/helpers.py:297
Method
__new__
(cls, filename: str, md5_hash: str)
src/supervision/assets/list.py:11
Method
__post_init__
(self)
src/supervision/detection/core.py:164
Method
__post_init__
Validate the classification inputs.
src/supervision/classification/core.py:37
Method
__private_method
(self)
tests/utils/test_internal.py:24
Method
__private_method
(self)
tests/utils/test_internal.py:60
Method
__private_property
(self)
tests/utils/test_internal.py:36
Method
__private_property
(self)
tests/utils/test_internal.py:72
Method
__repr__
(self)
src/supervision/draw/color.py:390
Method
__repr__
(self)
src/supervision/tracker/byte_tracker/single_object_track.py:185
Method
__setitem__
Set a value in the data dictionary of the Detections object. Args: key: The key in the data dictionary to set.
src/supervision/detection/core.py:2331
Method
__setitem__
Set a value in the data dictionary of the `sv.KeyPoints` object. Args: key: The key in the data dictionary to set.
src/supervision/key_points/core.py:1062
Method
__str__
Format as a pretty string. Example: ```pycon >>> import numpy as np >>> import supervision as sv
src/supervision/metrics/mean_average_recall.py:85
Method
__str__
Formats the evaluation output metrics to match the structure used by pycocotools Example: ```pycon >>> import
src/supervision/metrics/mean_average_precision.py:86
Method
__str__
Format as a pretty string. Example: ```pycon >>> import numpy as np >>> import supervision as sv
src/supervision/metrics/recall.py:527
Method
__str__
Format as a pretty string. Example: ```pycon >>> import numpy as np >>> import supervision as sv
src/supervision/metrics/f1_score.py:562
Method
__str__
Format as a pretty string. Example: ```pycon >>> import numpy as np >>> import supervision as sv
src/supervision/metrics/precision.py:571
Function
_calculate_aggregated_images_shape
( images: list[npt.NDArray[np.uint8]], aggregator: Callable[[list[int]], float] )
src/supervision/utils/image.py:713
Function
_call_confusion_matrix_evaluate_detection_batch_masks
()
tests/metrics/test_detection.py:54
Function
_call_confusion_matrix_from_detections_masks
()
tests/metrics/test_detection.py:25
Function
_call_confusion_matrix_from_tensors_masks
()
tests/metrics/test_detection.py:45
Method
_compute_axis_starts
( image_size: int, slice_size: int, stride: int, )
src/supervision/detection/tools/inference_slicer.py:413
Function
_empty_raw_segs
Object-dtype array of n empty lists for coco_raw_segmentation (bbox-only).
tests/dataset/formats/test_coco.py:47
Function
_encode_each
()
examples/compact_mask/benchmark.py:362
Method
_make_masks
(n: int)
tests/detection/test_compact_mask.py:1574
Function
_mock_simple_mask
(resolution_wh: tuple[int, int], box: list[int])
tests/dataset/formats/test_yolo.py:24
Method
_protected_method
(self)
tests/utils/test_internal.py:21
Method
_protected_method
(self)
tests/utils/test_internal.py:57
Method
_protected_property
(self)
tests/utils/test_internal.py:32
Method
_protected_property
(self)
tests/utils/test_internal.py:68
Method
_pycocotools_summarize
Compute and display summary metrics for evaluation results.
src/supervision/metrics/mean_average_precision.py:1097
Method
_sort_key
(d: Detections)
tests/detection/test_inference_slicer_compact.py:104
Method
_summarize
( use_ap: bool = True, iou_thr: float | None = None, area_range: ObjectSiz
src/supervision/metrics/mean_average_precision.py:1102
Method
_summarize_predictions
()
src/supervision/metrics/mean_average_precision.py:1145
Function
all_images
()
tests/utils/conftest.py:23
Function
all_images_tile
()
tests/utils/conftest.py:48
Function
all_images_tile_and_custom_colors
()
tests/utils/conftest.py:53
Function
all_images_tile_and_custom_colors_and_titles
()
tests/utils/conftest.py:88
Function
all_images_tile_and_custom_grid
()
tests/utils/conftest.py:58
Function
all_images_tile_and_titles_with_custom_configs
()
tests/utils/conftest.py:95
Method
annotate
Annotates the given scene with given icons. Args: scene: The image where labels will be drawn. `ImageTyp
src/supervision/annotators/core.py:1812
Method
annotate
( self, scene: Any, detections: Detections, *args: Any, **kwargs: Any )
src/supervision/annotators/base.py:9
Method
annotate
Draws the line on the frame using the line zone provided. Args: frame: The image on which the line will be drawn.
src/supervision/detection/line_zone.py:386
Method
annotate
Annotates the polygon zone within a frame with a count of detected objects. Args: scene: The image on which the polygon
src/supervision/detection/tools/polygon_zone.py:155
Method
annotate
(self, scene: ImageType, key_points: KeyPoints)
src/supervision/key_points/annotators.py:26
Method
annotate
Draws filled semi-transparent covariance ellipses around each keypoint. Args: scene: The image to annotate. ``ImageType`
src/supervision/key_points/annotators.py:406
Method
annotate
Draws labels at skeleton vertex positions on the image. Vertices marked not visible via ``key_points.visible`` are skipped.
src/supervision/key_points/annotators.py:740
Method
area
Calculate the area of each detection in the set of object detections. Selection order: 1. If ``mask`` is set, return the ar
src/supervision/detection/core.py:2367
Method
area
Compute the area (``True`` pixel count) of each mask. Returns: int64 array of shape ``(N,)`` with per-mask pixel counts.
src/supervision/detection/compact_mask.py:744
Method
as_folder_structure
Saves the dataset as a multi-class folder structure. Args: root_directory_path: The path to the directory
src/supervision/dataset/core.py:897
Method
as_pascal_voc
Exports the dataset to PASCAL VOC format. This method saves the images and their corresponding annotations in PASCAL VOC format.
src/supervision/dataset/core.py:330
Function
at_boundary_callback
(_: np.ndarray)
tests/detection/tools/test_inference_slicer.py:338
Method
bbox_xyxy
Return per-mask inclusive bounding boxes in ``xyxy`` format. Boxes are derived from crop metadata: ``x2 = x1 + crop_w - 1``, ``y2 = y
src/supervision/detection/compact_mask.py:690
Method
benchmark
Calculate confusion matrix from dataset and callback function. Args: dataset: Object detection dataset used for evaluati
src/supervision/metrics/detection.py:593
Method
benchmark
Calculate mean average precision from dataset and callback function. Args: dataset: Object detection dataset used for ev
src/supervision/metrics/detection.py:840
Method
bottom_right
(self)
src/supervision/geometry/core.py:185
Method
box_area
Calculate the area of each bounding box in the set of object detections. Returns: An array of floats containing the area
src/supervision/detection/core.py:2415
Method
box_aspect_ratio
Compute the aspect ratio (width divided by height) for each bounding box. Returns: Array of shape `(N,)` containing aspe
src/supervision/detection/core.py:2427
Method
box_only_callback
(tile: np.ndarray)
tests/detection/test_inference_slicer_compact.py:145
Function
calculate_optimal_line_thickness
Calculate optimal line thickness based on image resolution. Adjusts the line thickness for readability depending on the smallest dimension of
src/supervision/draw/utils.py:396
Function
callback
(_: np.ndarray)
tests/detection/tools/test_inference_slicer.py:20
Function
callback_success
(frame, index)
tests/utils/test_video.py:62
Function
callback_with_exception
(frame, index)
tests/utils/test_video.py:39
Method
center
Calculate the center point of the vector. Returns: The center point of the vector.
src/supervision/geometry/core.py:111
Function
coco_data_with_and_without_segmentation
()
tests/dataset/formats/test_coco.py:56
← previous
next →
701–800 of 1,714, ranked by callers