MCPcopy Create free account

hub / github.com/roboflow/supervision / functions

Functions1,714 in github.com/roboflow/supervision

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
Functionall_images
()
tests/utils/conftest.py:23
Functionall_images_tile
()
tests/utils/conftest.py:48
Functionall_images_tile_and_custom_colors
()
tests/utils/conftest.py:53
Functionall_images_tile_and_custom_colors_and_titles
()
tests/utils/conftest.py:88
Functionall_images_tile_and_custom_grid
()
tests/utils/conftest.py:58
Functionall_images_tile_and_titles_with_custom_configs
()
tests/utils/conftest.py:95
Methodannotate
Annotates the given scene with given icons. Args: scene: The image where labels will be drawn. `ImageTyp
src/supervision/annotators/core.py:1812
Methodannotate
( self, scene: Any, detections: Detections, *args: Any, **kwargs: Any )
src/supervision/annotators/base.py:9
Methodannotate
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
Methodannotate
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
Methodannotate
(self, scene: ImageType, key_points: KeyPoints)
src/supervision/key_points/annotators.py:26
Methodannotate
Draws filled semi-transparent covariance ellipses around each keypoint. Args: scene: The image to annotate. ``ImageType`
src/supervision/key_points/annotators.py:406
Methodannotate
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
Methodarea
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
Methodarea
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
Methodas_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
Methodas_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
Functionat_boundary_callback
(_: np.ndarray)
tests/detection/tools/test_inference_slicer.py:338
Methodbbox_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
Methodbenchmark
Calculate confusion matrix from dataset and callback function. Args: dataset: Object detection dataset used for evaluati
src/supervision/metrics/detection.py:593
Methodbenchmark
Calculate mean average precision from dataset and callback function. Args: dataset: Object detection dataset used for ev
src/supervision/metrics/detection.py:840
Methodbottom_right
(self)
src/supervision/geometry/core.py:185
Methodbox_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
Methodbox_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
Methodbox_only_callback
(tile: np.ndarray)
tests/detection/test_inference_slicer_compact.py:145
Functioncalculate_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
Functioncallback
(_: np.ndarray)
tests/detection/tools/test_inference_slicer.py:20
Functioncallback_success
(frame, index)
tests/utils/test_video.py:62
Functioncallback_with_exception
(frame, index)
tests/utils/test_video.py:39
Methodcenter
Calculate the center point of the vector. Returns: The center point of the vector.
src/supervision/geometry/core.py:111
Functioncoco_data_with_and_without_segmentation
()
tests/dataset/formats/test_coco.py:56
← previousnext →701–800 of 1,714, ranked by callers