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
coco_data_with_multi_segment_segmentation
()
tests/dataset/formats/test_coco.py:1425
Function
coco_data_with_unannotated_image
()
tests/dataset/formats/test_coco.py:111
Function
complex_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
Function
complex_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
Method
compute
Calculate the recall metric based on the stored predictions and ground-truth data, at different IoU thresholds. Returns:
src/supervision/metrics/recall.py:126
Method
compute
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
Method
compute
Calculate the precision metric based on the stored predictions and ground-truth data, at different IoU thresholds. Returns:
src/supervision/metrics/precision.py:126
Method
compute_average_precision
Compute average precision while handling -1 sentinel values.
src/supervision/metrics/mean_average_precision.py:1010
Method
confidence
Deprecated since 0.29.0. Use ``keypoint_confidence`` instead.
src/supervision/key_points/core.py:309
Method
counting_callback
(tile: np.ndarray)
tests/detection/test_inference_slicer_compact.py:122
Method
cpu
(self)
tests/classification/test_core.py:18
Method
create_empty_conf_matrix
(num_classes: int, do_add_dummy_class: bool = True)
tests/metrics/test_detection.py:152
Function
create_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
Function
decorator
(func: Callable[..., Any])
src/supervision/utils/internal.py:102
Method
default
(self, obj: Any)
src/supervision/utils/file.py:12
Function
deprecated_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
Function
detections_50_50
()
tests/metrics/conftest.py:10
Function
draw_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
Function
draw_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
Function
dummy_prediction
()
tests/metrics/conftest.py:27
Function
dummy_video_path
(tmp_path)
tests/utils/test_video.py:18
Function
empty_cv2_image
()
tests/utils/conftest.py:13
Function
empty_key_points
()
tests/conftest.py:68
Function
empty_pillow_image
()
tests/utils/conftest.py:18
Function
ensure_cv2_image_for_annotation
( annotate_func: F, )
src/supervision/utils/conversion.py:48
Function
ensure_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
Function
ensure_cv2_image_for_processing
( image_processing_fun: F, )
src/supervision/utils/conversion.py:121
Function
ensure_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
Function
ensure_pil_image_for_annotation
( annotate_func: F, )
src/supervision/utils/conversion.py:110
Function
ensure_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
Method
f1_50
(self)
src/supervision/metrics/f1_score.py:546
Method
f1_75
(self)
src/supervision/metrics/f1_score.py:550
Function
format_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
Function
four_images
()
tests/utils/conftest.py:43
Function
four_images_tile
()
tests/utils/conftest.py:63
Method
fps
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
Method
from_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
Method
from_deepsparse
Creates a Detections instance from a [DeepSparse](https://github.com/neuralmagic/deepsparse) inference result. Args:
src/supervision/detection/core.py:418
Method
from_detections
Calculate mean average precision based on predicted and ground-truth detections. Args: targets: Detections objects from
src/supervision/metrics/detection.py:787
Method
from_detectron2
Create a Detections object from the [Detectron2](https://github.com/facebookresearch/detectron2) inference result. Args:
src/supervision/detection/core.py:573
Method
from_detectron2
Create a `sv.KeyPoints` object from the [Detectron2](https://github.com/facebookresearch/detectron2) inference result. Args:
src/supervision/key_points/core.py:695
Method
from_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
Method
from_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
Method
from_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
Method
from_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
Method
from_lmm
!!! deprecated "Deprecated" `Detections.from_lmm` is **deprecated** and will be removed in `supervision-0.31.0`. Plea
src/supervision/detection/core.py:972
Method
from_matplotlib
Create a ColorPalette instance from a Matplotlib color palette. Args: palette_name: Name of the Matplotlib palette.
src/supervision/draw/color.py:479
Method
from_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
Method
from_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
Method
from_paddledet
Creates a Detections instance from [PaddleDetection](https://github.com/PaddlePaddle/PaddleDetection) inference resul
src/supervision/detection/core.py:930
Method
from_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
Method
from_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
Method
from_tensors
Calculate Mean Average Precision based on predicted and ground-truth detections at different threshold. Args:
src/supervision/metrics/detection.py:887
Method
from_transformers
Creates a Detections instance from object detection or panoptic, semantic and instance segmentation [Transformer](https://git
src/supervision/detection/core.py:492
Method
from_transformers
Create a `sv.KeyPoints` object from the [Transformers](https://github.com/huggingface/transformers) inference result. Args:
src/supervision/key_points/core.py:746
Method
from_ultralytics
Creates a Classifications instance from a [ultralytics](https://github.com/ultralytics/ultralytics) inference result. Args:
src/supervision/classification/core.py:93
Method
from_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
Method
from_value
(cls, value: LMM | str)
src/supervision/detection/vlm.py:54
Method
from_value
(cls, value: VLM | str)
src/supervision/detection/vlm.py:101
Method
from_value
(cls, value: OverlapMetric | str)
src/supervision/detection/utils/iou_and_nms.py:75
Method
from_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
Function
fuse_score
( cost_matrix: npt.NDArray[np.float32], stracks: list[STrack] )
src/supervision/tracker/byte_tracker/matching.py:65
Function
generate_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
Function
get_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
Function
get_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
Function
gradient_image
Create a gradient test image fixture
tests/annotators/test_core.py:58
Function
grayscale_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
Function
handleCopyButtonClick
(event)
docs/javascripts/pycon_copy.js:8
Function
handleCopyButtonPointerDown
(event)
docs/javascripts/pycon_copy.js:22
Function
handleSelectionCopy
(event)
docs/javascripts/pycon_copy.js:36
Function
in_bounds_callback
(_: np.ndarray)
tests/detection/tools/test_inference_slicer.py:256
Method
in_count
(self)
src/supervision/detection/line_zone.py:130
Method
in_count_per_class
(self)
src/supervision/detection/line_zone.py:138
Function
inference_callback
(frames: list[VideoFrame])
examples/time_in_zone/ultralytics_stream_example.py:102
Function
inference_callback
(frames: list[VideoFrame])
examples/time_in_zone/rfdetr_stream_example.py:161
Function
iou_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
Method
is_in_memory
(dataset: DetectionDataset)
src/supervision/dataset/core.py:279
Method
is_lazy
(dataset: DetectionDataset)
src/supervision/dataset/core.py:282
Function
linear_assignment
( cost_matrix: npt.NDArray[np.float32], thresh: float )
src/supervision/tracker/byte_tracker/matching.py:27
Method
list
(cls)
src/supervision/annotators/utils.py:36
Method
list
(cls)
src/supervision/geometry/core.py:25
Method
list
(cls)
src/supervision/assets/list.py:19
Method
list
(cls)
src/supervision/detection/vlm.py:97
Method
list
(cls)
src/supervision/detection/utils/iou_and_nms.py:71
Method
load_default_font
( size: int, )
src/supervision/annotators/core.py:1768
Method
mAR_at_1
(self)
src/supervision/metrics/mean_average_recall.py:64
Method
mAR_at_10
(self)
src/supervision/metrics/mean_average_recall.py:68
Method
mAR_at_100
(self)
src/supervision/metrics/mean_average_recall.py:72
Method
magnitude
Calculate the magnitude (length) of the vector. Returns: The magnitude of the vector.
src/supervision/geometry/core.py:99
Function
main
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
Function
main
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
Function
main
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
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/ultralytics_file_example.py:16
Function
main
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
Function
main
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
Function
main
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
Function
main
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
Function
main
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
Function
main
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
Function
main
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
← previous
next →
801–900 of 1,714, ranked by callers