MCPcopy Create free account

hub / github.com/roboflow/supervision / functions

Functions1,714 in github.com/roboflow/supervision

↓ 1 callersFunctionxyxy_to_xcycarh
Converts bounding box coordinates from `(x_min, y_min, x_max, y_max)` into measurement space to format `(center x, center y, aspect ratio, he
src/supervision/detection/utils/converters.py:155
↓ 1 callersFunctionxyxy_to_xywh
Converts bounding box coordinates from `(x_min, y_min, x_max, y_max)` format to `(x, y, width, height)` format. Args: xyxy: A nu
src/supervision/detection/utils/converters.py:85
MethodBLACK
(cls)
src/supervision/draw/color.py:360
MethodBLUE
(cls)
src/supervision/draw/color.py:376
MethodDEFAULT
Returns a default color palette. Returns: A ColorPalette instance with default colors. Example: ```
src/supervision/draw/color.py:410
MethodGREEN
(cls)
src/supervision/draw/color.py:372
MethodGREY
(cls)
src/supervision/draw/color.py:364
MethodLEGACY
(cls)
src/supervision/draw/color.py:452
MethodNO_ID
(self)
src/supervision/tracker/byte_tracker/utils.py:36
MethodRED
(cls)
src/supervision/draw/color.py:368
MethodROBOFLOW
(cls)
src/supervision/draw/color.py:384
MethodROBOFLOW
Returns a Roboflow color palette. Returns: A ColorPalette instance with Roboflow colors. Example: `
src/supervision/draw/color.py:431
MethodWHITE
(cls)
src/supervision/draw/color.py:356
MethodYELLOW
(cls)
src/supervision/draw/color.py:380
Method__array__
NumPy interop: materialise as a dense ``(N, H, W)`` array. Called by ``np.asarray(compact_mask)`` and similar NumPy functions. Args:
src/supervision/detection/compact_mask.py:863
Method__call__
Perform tiled inference on the full image and return merged detections. The first slice always runs synchronously so the output type
src/supervision/detection/tools/inference_slicer.py:178
Method__enter__
(self)
src/supervision/utils/image.py:521
Method__enter__
(self)
src/supervision/utils/video.py:105
Method__enter__
(self)
src/supervision/detection/tools/json_sink.py:62
Method__enter__
(self)
src/supervision/detection/tools/csv_sink.py:88
Method__eq__
(self, other: object)
src/supervision/dataset/core.py:135
Method__eq__
(self, other: object)
src/supervision/dataset/core.py:802
Method__eq__
(self, other: object)
src/supervision/metrics/detection.py:225
Method__eq__
(self, other: Any)
src/supervision/draw/color.py:395
Method__eq__
(self, other: object)
src/supervision/detection/core.py:206
Method__eq__
Element-wise equality with another :class:`CompactMask` or ndarray. Args: other: Another :class:`CompactMask` or ``np.ndarray``.
src/supervision/detection/compact_mask.py:891
Method__eq__
(self, other: object)
src/supervision/key_points/core.py:369
Method__exit__
( self, exc_type: type[BaseException] | None, exc_value: BaseException | None,
src/supervision/utils/image.py:551
Method__exit__
( self, exc_type: type[BaseException] | None, exc_value: BaseException | None,
src/supervision/utils/video.py:130
Method__exit__
( self, exc_type: type | None, exc_val: Exception | None, exc_tb: Any | None,
src/supervision/detection/tools/json_sink.py:66
Method__exit__
( self, exc_type: type | None, exc_val: Exception | None, exc_tb: Any | None,
src/supervision/detection/tools/csv_sink.py:92
Method__get__
Override the __get__ method to return the result of the function call. Args: owner_self: The instance through which the
src/supervision/utils/internal.py:152
Method__getitem__
Returns: The image path, image data, and its corresponding annotation at index i.
src/supervision/dataset/core.py:113
Method__getitem__
Returns: The image path, image data, and its corresponding annotation at index i.
src/supervision/dataset/core.py:778
Method__getitem__
Get a subset of the Detections object or access an item from its data field. When provided with an integer, slice, list of integers,
src/supervision/detection/core.py:2282
Method__getitem__
Index into the mask collection. * ``int`` → dense ``(H, W)`` bool array (for annotators, iterators). * ``slice | list | ndarray`` → n
src/supervision/detection/compact_mask.py:795
Method__getitem__
Get a subset of the KeyPoints object or access an item from its data field. Supports detection-level (skeleton) filtering, keypoint-
src/supervision/key_points/core.py:925
Method__hash__
(self)
src/supervision/draw/color.py:387
Method__init__
Initialize context manager for saving images to directory. Args: target_dir_path: Target directory path where images wil
src/supervision/utils/image.py:482
Method__init__
Args: The function that is called when the property is accessed.
src/supervision/utils/internal.py:145
Method__init__
(self, target_path: str, video_info: VideoInfo, codec: str = "mp4v")
src/supervision/utils/video.py:99
Method__init__
Args: sample_size: The maximum number of observations for latency benchmarking. Examples: ``
src/supervision/utils/video.py:464
Method__init__
Initializes the _BaseLabelAnnotator. Args: color: The color to use for the label background.
src/supervision/annotators/core.py:103
Method__init__
Args: color: The color or color palette to use for annotating detections. thickness: Thickness of the
src/supervision/annotators/core.py:282
Method__init__
Args: color: The color or color palette to use for annotating detections. opacity: Opacity of the ove
src/supervision/annotators/core.py:432
Method__init__
Args: color: The color or color palette to use for annotating detections. thickness: Thickness of the
src/supervision/annotators/core.py:520
Method__init__
Args: color: The color or color palette to use for annotating detections. opacity: Opacity of the ove
src/supervision/annotators/core.py:611
Method__init__
Args: color: The color or color palette to use for annotating detections. opacity: Opacity of the ove
src/supervision/annotators/core.py:707
Method__init__
Args: color: The color or color palette to use for annotating detections. thickness: Thickness of the
src/supervision/annotators/core.py:805
Method__init__
Args: color: The color or color palette to use for annotating detections. thickness: Thickness of the
src/supervision/annotators/core.py:904
Method__init__
Args: color: The color or color palette to use for annotating detections. thickness: Thickness of the
src/supervision/annotators/core.py:999
Method__init__
Args: color: The color or color palette to use for annotating detections. radius: Radius of the drawn
src/supervision/annotators/core.py:1092
Method__init__
Args: color: The color or color palette to use for annotating the text background. color_lookup: Stra
src/supervision/annotators/core.py:1202
Method__init__
Args: color: The color or color palette to use for annotating the text background. color_lookup: Stra
src/supervision/annotators/core.py:1518
Method__init__
Args: icon_resolution_wh: The size of drawn icons. All icons will be resized to this resolution, keeping the aspe
src/supervision/annotators/core.py:1793
Method__init__
Args: kernel_size: The size of the average pooling kernel used for blurring. If not set, a dynamic size is comput
src/supervision/annotators/core.py:1902
Method__init__
Args: color: The color to draw the trace, can be a single color or a color palette. position: The pos
src/supervision/annotators/core.py:1985
Method__init__
Args: position: The position of the heatmap. Defaults to `BOTTOM_CENTER`. opacity: Opacity of the ove
src/supervision/annotators/core.py:2126
Method__init__
Args: pixel_size: The size of the pixelation. If not set, a dynamic size is computed as one-half of the shorter b
src/supervision/annotators/core.py:2236
Method__init__
Args: color: The color or color palette to use for annotating detections. base: The base width of the
src/supervision/annotators/core.py:2331
Method__init__
Args: color: The color or color palette to use for annotating detections. thickness: Thickness of the
src/supervision/annotators/core.py:2453
Method__init__
Args: height: The height in pixels of the percentage bar. width: The width in pixels of the percentage bar.
src/supervision/annotators/core.py:2588
Method__init__
Args: position: The anchor position for placing the cropped and scaled part of the detection in the scene.
src/supervision/annotators/core.py:2795
Method__init__
Args: color: The color to use for annotating detections. opacity: Opacity of the overlay mask. Must be between `0` an
src/supervision/annotators/core.py:2960
Method__init__
Args: color_1: Color of areas only present in the first set of detections. color_2: Color of areas on
src/supervision/annotators/core.py:3043
Method__init__
( self, max_size: int | None = None, start_frame_id: int = 0, anchor: Position
src/supervision/annotators/utils.py:333
Method__init__
( self, classes: list[str], images: list[str] | dict[str, npt.NDArray[np.uint8]],
src/supervision/dataset/core.py:74
Method__init__
( self, classes: list[str], images: list[str] | dict[str, npt.NDArray[np.uint8]],
src/supervision/dataset/core.py:740
Method__init__
Initialize the Mean Average Recall metric. Args: metric_target: The type of detection data to use.
src/supervision/metrics/mean_average_recall.py:297
Method__init__
Constructor of EvaluationDataset object used to evaluate models with Mean Average Precision. Args: targets: The
src/supervision/metrics/mean_average_precision.py:255
Method__init__
Initialize all parameters for evaluation
src/supervision/metrics/mean_average_precision.py:551
Method__init__
Constructor of COCOEvaluator object. Args: coco_targets: The dataset with the ground truths. coco_prediction
src/supervision/metrics/mean_average_precision.py:589
Method__init__
Initialize the Mean Average Precision metric. Args: metric_target: The type of detection data to use. class_
src/supervision/metrics/mean_average_precision.py:1264
Method__init__
Initialize the Recall metric. Args: metric_target: The type of detection data to use. averaging_method: The
src/supervision/metrics/recall.py:69
Method__init__
Initialize the F1Score metric. Args: metric_target: The type of detection data to use. averaging_method: The
src/supervision/metrics/f1_score.py:66
Method__init__
Initialize the Precision metric. Args: metric_target: The type of detection data to use. averaging_method: T
src/supervision/metrics/precision.py:69
Method__init__
( self, rles: list[npt.NDArray[np.int32]], crop_shapes: npt.NDArray[np.int32],
src/supervision/detection/compact_mask.py:459
Method__init__
Args: start: The starting point of the line. end: The ending point of the line. triggering_anchors: A lis
src/supervision/detection/line_zone.py:91
Method__init__
A class for drawing the `LineZone` and its detected object count on an image. Args: thickness: Line thickness.
src/supervision/detection/line_zone.py:331
Method__init__
Draw a table showing how many items of each class crossed each line. Args: table_position: The position of the table.
src/supervision/detection/line_zone.py:714
Method__init__
Args: length: The maximum number of frames to consider for smoothing detections. Defaults to 5.
src/supervision/detection/tools/smoother.py:90
Method__init__
Initialize the JSONSink instance. Args: file_name: The name of the JSON file.
src/supervision/detection/tools/json_sink.py:51
Method__init__
Initialize the CSVSink instance. Args: file_name: The name of the CSV file.
src/supervision/detection/tools/csv_sink.py:75
Method__init__
( self, polygon: npt.NDArray[np.int64], triggering_anchors: Iterable[Position] = (Posi
src/supervision/detection/tools/polygon_zone.py:56
Method__init__
( self, zone: PolygonZone, color: Color = Color.WHITE, thickness: int = 2,
src/supervision/detection/tools/polygon_zone.py:131
Method__init__
( self, callback: Callable[[ImageType], Detections], slice_wh: int | tuple[int, int] =
src/supervision/detection/tools/inference_slicer.py:143
Method__init__
( self, track_activation_threshold: float = 0.25, lost_track_buffer: int = 30,
src/supervision/tracker/byte_tracker/core.py:56
Method__init__
Initialize the ID counter. Args: start_id: The starting integer for the counter. Raises: ValueError
src/supervision/tracker/byte_tracker/utils.py:5
Method__init__
(self)
src/supervision/tracker/byte_tracker/kalman_filter.py:21
Method__init__
( self, tlwh: npt.NDArray[np.float32], score: float, minimum_consecutive_frame
src/supervision/tracker/byte_tracker/single_object_track.py:20
Method__init__
Args: color: The color to use for annotating key points. radius: The radius of the circles used to represent the key
src/supervision/key_points/annotators.py:37
Method__init__
( self, sigma: float | Sequence[float] = (1.0, 2.0, 3.0), color: Color | Sequence[Colo
src/supervision/key_points/annotators.py:268
Method__init__
Args: sigma: Sigma multipliers for each ring, drawn from outermost to innermost. Accepts a single float or a seq
src/supervision/key_points/annotators.py:383
Method__init__
Args: sigma: Sigma multipliers for each ring, drawn from outermost to innermost. Accepts a single float or a seq
src/supervision/key_points/annotators.py:482
Method__init__
Args: sigma: Sigma multipliers for each ring, drawn from outermost to innermost. Accepts a single float or a seq
src/supervision/key_points/annotators.py:583
Method__init__
Args: color: The color to use for each keypoint label. If a list is provided, the colors will be used in order fo
src/supervision/key_points/annotators.py:709
Method__init__
Initialize KeyPoints. Args: xy: Array of shape `(n, m, 2)` with keypoint coordinates. class_id: Array of shape `(n,)`
src/supervision/key_points/core.py:245
Method__init__
(self, arr: np.ndarray)
tests/helpers.py:251
Method__init__
(self, pred0: np.ndarray)
tests/helpers.py:267
Method__init__
( self, xyxy: np.ndarray, conf: np.ndarray, cls: np.ndarray, id_: np.n
tests/helpers.py:274
← previousnext →601–700 of 1,714, ranked by callers