MCPcopy Create free account

hub / github.com/roboflow/supervision / functions

Functions1,714 in github.com/roboflow/supervision

Functioncoco_data_with_multi_segment_segmentation
()
tests/dataset/formats/test_coco.py:1425
Functioncoco_data_with_unannotated_image
()
tests/dataset/formats/test_coco.py:111
Functioncomplex_scenario_predictions
Predictions for complex multi-image scenario. 15 images with varying detection quality: - True positives, false positives, false negativ
tests/metrics/test_mean_average_recall.py:147
Functioncomplex_scenario_targets
Ground truth for complex multi-image scenario. 15 images with varying object counts and classes. Total: class_0=17, class_1=19 objects.
tests/metrics/test_mean_average_recall.py:9
Methodcompute
Calculate the recall metric based on the stored predictions and ground-truth data, at different IoU thresholds. Returns:
src/supervision/metrics/recall.py:126
Methodcompute
Calculate the F1 score metric based on the stored predictions and ground-truth data, at different IoU thresholds. Returns:
src/supervision/metrics/f1_score.py:123
Methodcompute
Calculate the precision metric based on the stored predictions and ground-truth data, at different IoU thresholds. Returns:
src/supervision/metrics/precision.py:126
Methodcompute_average_precision
Compute average precision while handling -1 sentinel values.
src/supervision/metrics/mean_average_precision.py:1010
Methodconfidence
Deprecated since 0.29.0. Use ``keypoint_confidence`` instead.
src/supervision/key_points/core.py:309
Methodcounting_callback
(tile: np.ndarray)
tests/detection/test_inference_slicer_compact.py:122
Methodcpu
(self)
tests/classification/test_core.py:18
Methodcreate_empty_conf_matrix
(num_classes: int, do_add_dummy_class: bool = True)
tests/metrics/test_detection.py:152
Functioncreate_tiles
Creates tiles mosaic from input images, automating grid placement and converting images to common resolution maintaining aspect ratio. It is
src/supervision/utils/image.py:565
Functiondecorator
(func: Callable[..., Any])
src/supervision/utils/internal.py:102
Methoddefault
(self, obj: Any)
src/supervision/utils/file.py:12
Functiondeprecated_parameter
A decorator to mark a function's parameter as deprecated and issue a warning when used. Args: old_parameter: The name of the dep
src/supervision/utils/internal.py:53
Functiondetections_50_50
()
tests/metrics/conftest.py:10
Functiondraw_image
Draws an image onto a given scene with specified opacity and dimensions. Args: scene: Background image where the new image will be d
src/supervision/draw/utils.py:301
Functiondraw_line
Draws a line on a given scene. Args: scene: The scene on which the line will be drawn start: The starting point of the line
src/supervision/draw/utils.py:14
Functiondummy_prediction
()
tests/metrics/conftest.py:27
Functiondummy_video_path
(tmp_path)
tests/utils/test_video.py:18
Functionempty_cv2_image
()
tests/utils/conftest.py:13
Functionempty_key_points
()
tests/conftest.py:68
Functionempty_pillow_image
()
tests/utils/conftest.py:18
Functionensure_cv2_image_for_annotation
( annotate_func: F, )
src/supervision/utils/conversion.py:48
Functionensure_cv2_image_for_class_method
Decorates `BaseAnnotator.annotate` implementations, converts scene to an image type used internally by the annotators, converts back when ann
src/supervision/utils/conversion.py:16
Functionensure_cv2_image_for_processing
( image_processing_fun: F, )
src/supervision/utils/conversion.py:121
Functionensure_cv2_image_for_standalone_function
Decorates image processing functions that accept np.ndarray, converting `image` to np.ndarray, converts back when processing is complete.
src/supervision/utils/conversion.py:54
Functionensure_pil_image_for_annotation
( annotate_func: F, )
src/supervision/utils/conversion.py:110
Functionensure_pil_image_for_class_method
Decorates image processing functions that accept np.ndarray, converting `image` to PIL image, converts back when processing is complete.
src/supervision/utils/conversion.py:79
Methodf1_50
(self)
src/supervision/metrics/f1_score.py:546
Methodf1_75
(self)
src/supervision/metrics/f1_score.py:550
Functionformat_warning
Format a warning the same way as the default formatter, but also include the category name in the output.
src/supervision/utils/internal.py:21
Functionfour_images
()
tests/utils/conftest.py:43
Functionfour_images_tile
()
tests/utils/conftest.py:63
Methodfps
Computes and returns the average FPS based on the stored time stamps. Returns: The average FPS. Returns 0.0 if no time s
src/supervision/utils/video.py:487
Methodfrom_azure_analyze_image
Creates a Detections instance from [Azure Image Analysis 4.0]( https://learn.microsoft.com/en-us/azure/ai-services/computer-vision/
src/supervision/detection/core.py:843
Methodfrom_deepsparse
Creates a Detections instance from a [DeepSparse](https://github.com/neuralmagic/deepsparse) inference result. Args:
src/supervision/detection/core.py:418
Methodfrom_detections
Calculate mean average precision based on predicted and ground-truth detections. Args: targets: Detections objects from
src/supervision/metrics/detection.py:787
Methodfrom_detectron2
Create a Detections object from the [Detectron2](https://github.com/facebookresearch/detectron2) inference result. Args:
src/supervision/detection/core.py:573
Methodfrom_detectron2
Create a `sv.KeyPoints` object from the [Detectron2](https://github.com/facebookresearch/detectron2) inference result. Args:
src/supervision/key_points/core.py:695
Methodfrom_easyocr
Create a Detections object from the [EasyOCR](https://github.com/JaidedAI/EasyOCR) result. Results are placed in the `data`
src/supervision/detection/core.py:1961
Methodfrom_folder_structure
Load data from a multiclass folder structure into a ClassificationDataset. Args: root_directory_path: The path to the da
src/supervision/dataset/core.py:922
Methodfrom_hex
Create a ColorPalette instance from a list of hex strings. Args: color_hex_list: List of color hex strings. Ret
src/supervision/draw/color.py:456
Methodfrom_inference
Create a `sv.KeyPoints` object from the [Roboflow](https://roboflow.com/) API inference result or the [Inference](https://inference.r
src/supervision/key_points/core.py:388
Methodfrom_lmm
!!! deprecated "Deprecated" `Detections.from_lmm` is **deprecated** and will be removed in `supervision-0.31.0`. Plea
src/supervision/detection/core.py:972
Methodfrom_matplotlib
Create a ColorPalette instance from a Matplotlib color palette. Args: palette_name: Name of the Matplotlib palette.
src/supervision/draw/color.py:479
Methodfrom_mmdetection
Creates a Detections instance from a [mmdetection](https://github.com/open-mmlab/mmdetection) and [mmyolo](https://github.com
src/supervision/detection/core.py:454
Methodfrom_ncnn
Creates a Detections instance from the [ncnn](https://github.com/Tencent/ncnn) inference result. Supports object detection mo
src/supervision/detection/core.py:2007
Methodfrom_paddledet
Creates a Detections instance from [PaddleDetection](https://github.com/PaddlePaddle/PaddleDetection) inference resul
src/supervision/detection/core.py:930
Methodfrom_pascal_voc
Creates a Dataset instance from PASCAL VOC formatted data. Args: images_directory_path: Path to the directory containing
src/supervision/dataset/core.py:388
Methodfrom_tensorflow
Creates a Detections instance from a [Tensorflow Hub](https://www.tensorflow.org/hub/tutorials/tf2_object_detection) inferenc
src/supervision/detection/core.py:373
Methodfrom_tensors
Calculate Mean Average Precision based on predicted and ground-truth detections at different threshold. Args:
src/supervision/metrics/detection.py:887
Methodfrom_transformers
Creates a Detections instance from object detection or panoptic, semantic and instance segmentation [Transformer](https://git
src/supervision/detection/core.py:492
Methodfrom_transformers
Create a `sv.KeyPoints` object from the [Transformers](https://github.com/huggingface/transformers) inference result. Args:
src/supervision/key_points/core.py:746
Methodfrom_ultralytics
Creates a Classifications instance from a [ultralytics](https://github.com/ultralytics/ultralytics) inference result. Args:
src/supervision/classification/core.py:93
Methodfrom_ultralytics
Creates a `sv.KeyPoints` instance from a [YOLOv8](https://github.com/ultralytics/ultralytics) pose inference result. Args:
src/supervision/key_points/core.py:598
Methodfrom_value
(cls, value: LMM | str)
src/supervision/detection/vlm.py:54
Methodfrom_value
(cls, value: VLM | str)
src/supervision/detection/vlm.py:101
Methodfrom_value
(cls, value: OverlapMetric | str)
src/supervision/detection/utils/iou_and_nms.py:75
Methodfrom_yolo_nas
Create a `sv.KeyPoints` instance from a [YOLO-NAS](https://github.com/Deci-AI/super-gradients/blob/master/YOLONAS-POSE.md) pose infer
src/supervision/key_points/core.py:637
Functionfuse_score
( cost_matrix: npt.NDArray[np.float32], stracks: list[STrack] )
src/supervision/tracker/byte_tracker/matching.py:65
Functiongenerate_test_polygon
Generate a semicircle with a given number of points. Parameters: n (int): amount of points in polygon Returns: Pol
tests/geometry/test_utils.py:8
Functionget_coco_class_index_mapping
Generates a mapping from sequential class indices to original COCO class ids. This function is essential when working with models that expec
src/supervision/dataset/formats/coco.py:357
Functionget_object_size_category
Get the size category of an object. Distinguish based on the metric target. Args: data: The object data, shaped (N, ...). me
src/supervision/metrics/utils/object_size.py:46
Functiongradient_image
Create a gradient test image fixture
tests/annotators/test_core.py:58
Functiongrayscale_image
Convert image to 3-channel grayscale. Luminance channel is broadcast to all three channels for compatibility with color-based drawing helpers
src/supervision/utils/image.py:404
FunctionhandleCopyButtonClick
(event)
docs/javascripts/pycon_copy.js:8
FunctionhandleCopyButtonPointerDown
(event)
docs/javascripts/pycon_copy.js:22
FunctionhandleSelectionCopy
(event)
docs/javascripts/pycon_copy.js:36
Functionin_bounds_callback
(_: np.ndarray)
tests/detection/tools/test_inference_slicer.py:256
Methodin_count
(self)
src/supervision/detection/line_zone.py:130
Methodin_count_per_class
(self)
src/supervision/detection/line_zone.py:138
Functioninference_callback
(frames: list[VideoFrame])
examples/time_in_zone/ultralytics_stream_example.py:102
Functioninference_callback
(frames: list[VideoFrame])
examples/time_in_zone/rfdetr_stream_example.py:161
Functioniou_distance
( atracks: list[STrack] | list[npt.NDArray[np.float32]], btracks: list[STrack] | list[npt.NDArray[np.f
src/supervision/tracker/byte_tracker/matching.py:44
Methodis_in_memory
(dataset: DetectionDataset)
src/supervision/dataset/core.py:279
Methodis_lazy
(dataset: DetectionDataset)
src/supervision/dataset/core.py:282
Functionlinear_assignment
( cost_matrix: npt.NDArray[np.float32], thresh: float )
src/supervision/tracker/byte_tracker/matching.py:27
Methodlist
(cls)
src/supervision/annotators/utils.py:36
Methodlist
(cls)
src/supervision/geometry/core.py:25
Methodlist
(cls)
src/supervision/assets/list.py:19
Methodlist
(cls)
src/supervision/detection/vlm.py:97
Methodlist
(cls)
src/supervision/detection/utils/iou_and_nms.py:71
Methodload_default_font
( size: int, )
src/supervision/annotators/core.py:1768
MethodmAR_at_1
(self)
src/supervision/metrics/mean_average_recall.py:64
MethodmAR_at_10
(self)
src/supervision/metrics/mean_average_recall.py:68
MethodmAR_at_100
(self)
src/supervision/metrics/mean_average_recall.py:72
Methodmagnitude
Calculate the magnitude (length) of the vector. Returns: The magnitude of the vector.
src/supervision/geometry/core.py:99
Functionmain
Heatmap and Tracking with Supervision. Args: source_weights_path: Path to the source weights file source_video_path: Pa
examples/heatmap_and_track/script.py:15
Functionmain
Traffic Flow Analysis with Inference and ByteTrack. Args: source_video_path: Path to the source video file target_video_path
examples/traffic_analysis/inference_example.py:182
Functionmain
Traffic Flow Analysis with YOLO and ByteTrack. Args: source_weights_path: Path to the source weights file source_video_path:
examples/traffic_analysis/ultralytics_example.py:179
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/ultralytics_file_example.py:16
Functionmain
Calculating detections dwell time in zones, using RTSP stream. Args: zone_configuration_path: Path to the zone configuration JSON fi
examples/time_in_zone/inference_naive_stream_example.py:16
Functionmain
Calculating detections dwell time in zones, using RTSP stream. Args: rtsp_url: Complete RTSP URL for the video stream zone_c
examples/time_in_zone/rfdetr_naive_stream_example.py:90
Functionmain
Calculating detections dwell time in zones, using RTSP stream. Args: zone_configuration_path: Path to the zone configuration JSON fi
examples/time_in_zone/ultralytics_naive_stream_example.py:16
Functionmain
Calculating detections dwell time in zones, using video file. Args: source_video_path: Path to the source video file zone_co
examples/time_in_zone/rfdetr_file_example.py:90
Functionmain
Calculating detections dwell time in zones, using RTSP stream. Args: zone_configuration_path: Path to the zone configuration JSON fi
examples/time_in_zone/inference_stream_example.py:77
Functionmain
Calculating detections dwell time in zones, using RTSP stream. Args: zone_configuration_path: Path to the zone configuration JSON fi
examples/time_in_zone/ultralytics_stream_example.py:79
Functionmain
Calculating detections dwell time in zones using an RTSP stream. Args: rtsp_url: Complete RTSP URL for the video stream zone
examples/time_in_zone/rfdetr_stream_example.py:135
← previousnext →801–900 of 1,714, ranked by callers