MCPcopy Create free account

hub / github.com/roboflow/supervision / functions

Functions1,714 in github.com/roboflow/supervision

Methodtest_anchor_on_polygon_boundary_included
An anchor landing exactly on a polygon corner is counted as inside.
tests/detection/test_polygonzone.py:156
Methodtest_annotate_bbox_smaller_than_pixel_size_does_not_raise
PixelateAnnotator must not crash when the bbox is smaller than pixel_size. Regression test for https://github.com/roboflow/supervision/issues
tests/annotators/test_core.py:753
Methodtest_annotate_draws_halo
(self, scene, sample_key_points)
tests/key_points/test_annotators.py:352
Methodtest_annotate_draws_outlines
(self, scene, sample_key_points)
tests/key_points/test_annotators.py:299
Methodtest_annotate_empty_after_real_does_not_warn
Empty call after heat accumulated must not trigger RuntimeWarning.
tests/annotators/test_core.py:567
Methodtest_annotate_empty_key_points
Verify that VertexAnnotator handles empty keypoints without modifying the scene. Scenario: Annotating a scene with no key points det
tests/key_points/test_annotators.py:49
Methodtest_annotate_empty_key_points
Verify that EdgeAnnotator handles empty keypoints without modifying the scene. Scenario: Annotating a scene with no key points for e
tests/key_points/test_annotators.py:132
Methodtest_annotate_empty_key_points
Scenario: Annotating a scene with no keypoints. Expected: Original scene is returned untouched.
tests/key_points/test_annotators.py:211
Methodtest_annotate_empty_key_points
(self, scene, empty_key_points)
tests/key_points/test_annotators.py:318
Methodtest_annotate_empty_key_points
(self, scene, empty_key_points)
tests/key_points/test_annotators.py:370
Methodtest_annotate_grayscale_image_does_not_raise
PixelateAnnotator must work on single-channel (grayscale) images. The small-ROI avg-fill branch previously sliced cv2.mean()[:3] into a
tests/annotators/test_core.py:767
Methodtest_annotate_grayscale_image_small_roi_does_not_raise
Grayscale image with bbox smaller than pixel_size uses scalar avg fill. Exercises the ndim-aware branch added to the small-ROI fallback.
tests/annotators/test_core.py:780
Methodtest_annotate_invalid_covariance_shape_raises
Scenario: Covariance data does not match keypoint dimensions. Expected: Clear shape validation error.
tests/key_points/test_annotators.py:231
Methodtest_annotate_missing_covariance_data_raises
Scenario: Annotating non-empty keypoints without covariance data. Expected: Clear error explaining the expected data field.
tests/key_points/test_annotators.py:221
Methodtest_annotate_no_edges_found
Verify returning unmodified scene when no known skeleton matches. Scenario: Key points provided don't match any known or provided sk
tests/key_points/test_annotators.py:165
Methodtest_annotate_state_preserved_after_empty_call
Empty call must not poison accumulated heat.
tests/annotators/test_core.py:557
Methodtest_annotate_uint8_mask_matches_bool_mask
Test that uint8 and bool masks produce identical overlays.
tests/annotators/test_core.py:242
Methodtest_annotate_uint8_mask_matches_bool_mask
Test that uint8 and bool masks produce identical halos.
tests/annotators/test_core.py:344
Methodtest_annotate_uint8_mask_matches_bool_mask
Test that uint8 and bool masks produce identical overlays.
tests/annotators/test_core.py:901
Methodtest_annotate_with_all_false_mask_preserves_scene
Test that an all-False mask leaves the scene unchanged, not corrupted.
tests/annotators/test_core.py:368
Methodtest_annotate_with_covariance_data
Scenario: Annotating keypoints with per-point covariance matrices. Expected: Scene is modified with filled ellipses at keypoint locat
tests/key_points/test_annotators.py:190
Methodtest_annotate_with_custom_color_and_radius
Verify that VertexAnnotator respects custom color and radius settings. Scenario: Annotating a scene with user-specified color and ra
tests/key_points/test_annotators.py:31
Methodtest_annotate_with_custom_edges
Verify that EdgeAnnotator respects custom-defined skeleton structures. Scenario: Annotating a scene with a custom-defined skeleton s
tests/key_points/test_annotators.py:115
Methodtest_annotate_with_default_parameters
Verify that VertexAnnotator correctly draws keypoints with default parameters. Scenario: Annotating a scene using default vertex par
tests/key_points/test_annotators.py:16
Methodtest_annotate_with_default_parameters
Verify correctly draw skeleton edges with default parameters. Scenario: Annotating a scene with default skeleton (e.g., COCO).
tests/key_points/test_annotators.py:100
Methodtest_annotate_with_multiple_detections
Verify that annotation with multiple detections draws all bounding boxes. Scenario: Annotating an image with multiple bounding boxes
tests/annotators/test_core.py:149
Methodtest_annotate_with_no_detections
Verify that annotation with no detections does not change the image. Scenario: Annotating an image with an empty set of detections.
tests/annotators/test_core.py:122
Methodtest_annotate_with_no_detections
Test that annotate method returns unmodified image when no detections
tests/annotators/test_core.py:199
Methodtest_annotate_with_no_detections
Test that annotate method returns unmodified image when no detections
tests/annotators/test_core.py:217
Methodtest_annotate_with_no_detections
Test that annotate method returns unmodified image when no detections
tests/annotators/test_core.py:267
Methodtest_annotate_with_no_detections
Test that annotate method returns unmodified image when no detections
tests/annotators/test_core.py:296
Methodtest_annotate_with_no_detections
Test that annotate method returns unmodified image when no detections
tests/annotators/test_core.py:316
Methodtest_annotate_with_no_detections
Test that annotate method returns unmodified image when no detections
tests/annotators/test_core.py:582
Methodtest_annotate_with_no_detections
Test that annotate method returns unmodified image when no detections
tests/annotators/test_core.py:602
Methodtest_annotate_with_no_detections
Test that annotate method returns unmodified image when no detections
tests/annotators/test_core.py:625
Methodtest_annotate_with_no_detections
Test that annotate method returns unmodified image when no detections
tests/annotators/test_core.py:645
Methodtest_annotate_with_no_detections
Test that annotate method returns unmodified image when no detections
tests/annotators/test_core.py:668
Methodtest_annotate_with_no_detections
Test that annotate method returns unmodified image when no detections
tests/annotators/test_core.py:688
Methodtest_annotate_with_no_detections
Test that annotate method returns unmodified image when no detections
tests/annotators/test_core.py:708
Methodtest_annotate_with_no_detections
Test that annotate method returns unmodified image when no detections
tests/annotators/test_core.py:739
Methodtest_annotate_with_no_detections
Test that annotate method returns unmodified image when no detections
tests/annotators/test_core.py:808
Methodtest_annotate_with_no_detections
Test that annotate method returns unmodified image when no detections
tests/annotators/test_core.py:828
Methodtest_annotate_with_no_detections
Test that annotate method returns unmodified image when no detections
tests/annotators/test_core.py:848
Methodtest_annotate_with_no_detections
Test that annotate method returns unmodified image when no detections
tests/annotators/test_core.py:868
Methodtest_annotate_with_no_detections
Test that annotate method returns unmodified image when no detections
tests/annotators/test_core.py:886
Methodtest_annotate_with_no_detections
Test that annotate method returns unmodified image when no detections
tests/annotators/test_core.py:922
Methodtest_annotate_with_no_detections_does_not_warn
Empty detections must not trigger a divide-by-zero RuntimeWarning.
tests/annotators/test_core.py:539
Methodtest_annotate_with_numpy_color_lookup
Verify that annotation respects custom NumPy color lookup array. Scenario: Providing a custom NumPy array for color lookup instead o
tests/annotators/test_core.py:167
Methodtest_annotate_with_single_detection
Verify that annotation with a single detection draws a bounding box. Scenario: Annotating an image with a single bounding box.
tests/annotators/test_core.py:134
Methodtest_annotate_with_single_detection
Test that annotate method correctly draws a single color box
tests/annotators/test_core.py:303
Methodtest_annotate_with_single_detection
Single detection must produce visible heat — result differs from input.
tests/annotators/test_core.py:550
Methodtest_annotate_with_single_detection
Test that annotate method correctly draws a single ellipse
tests/annotators/test_core.py:589
Methodtest_annotate_with_single_detection
Test that annotate method correctly draws box corners
tests/annotators/test_core.py:609
Methodtest_annotate_with_single_detection
Test that annotate method correctly draws a circle
tests/annotators/test_core.py:632
Methodtest_annotate_with_single_detection
Test that annotate method correctly draws a dot
tests/annotators/test_core.py:652
Methodtest_annotate_with_single_detection
Test that annotate method correctly draws a label
tests/annotators/test_core.py:675
Methodtest_annotate_with_single_detection
Test that annotate method correctly draws a rich label
tests/annotators/test_core.py:695
Methodtest_annotate_with_single_detection
Test that annotate method correctly blurs a region
tests/annotators/test_core.py:715
Methodtest_annotate_with_single_detection
Test that annotate method correctly pixelates a region
tests/annotators/test_core.py:746
Methodtest_annotate_with_single_detection
Test that annotate method correctly draws a triangle
tests/annotators/test_core.py:815
Methodtest_annotate_with_single_detection
Test that annotate method correctly draws a round box
tests/annotators/test_core.py:835
Methodtest_annotate_with_single_detection
Test that annotate method correctly draws a percentage bar
tests/annotators/test_core.py:855
Methodtest_annotate_with_single_detection
Test that annotate method correctly draws a crop
tests/annotators/test_core.py:875
Methodtest_annotate_with_single_detection
Test that annotate method correctly draws background overlay
tests/annotators/test_core.py:893
Methodtest_annotate_with_single_detection_each
Test that annotate method correctly compares two detections
tests/annotators/test_core.py:932
Methodtest_annotate_with_single_mask
Test that annotate method correctly draws a single mask
tests/annotators/test_core.py:231
Methodtest_annotate_with_single_mask
Test that annotate method correctly draws a single polygon from mask
tests/annotators/test_core.py:281
Methodtest_annotate_with_single_mask
Test that annotate method correctly draws a single halo
tests/annotators/test_core.py:330
Methodtest_annotate_without_masks
Test that annotate method returns unmodified image when no masks
tests/annotators/test_core.py:224
Methodtest_annotate_without_masks
Test that annotate method returns unmodified image when no masks
tests/annotators/test_core.py:274
Methodtest_annotate_without_masks
Test that annotate method returns unmodified image when no masks
tests/annotators/test_core.py:323
Methodtest_annotate_without_oriented_boxes
Test that annotate method returns unmodified image when no OBB data
tests/annotators/test_core.py:206
Methodtest_annotate_zero_area_bbox_is_skipped
Zero-area bounding boxes must be silently skipped, not crash.
tests/annotators/test_core.py:728
Methodtest_annotate_zero_area_bbox_is_skipped
Zero-area bounding boxes must be silently skipped, not crash.
tests/annotators/test_core.py:797
Functiontest_annotator_code_examples_have_no_tuple_assignment
Assert no annotated_frame assignment wraps the call in a tuple. Guards against the paren-comma typo: ``annotated_frame = (call(),)`` which cr
tests/annotators/test_docs.py:118
Methodtest_annotator_compact_mask_handles_edge_clipping
CompactMask detection straddling image edge paints via NumPy clip.
tests/annotators/test_core.py:514
Methodtest_annotator_compact_mask_matches_dense_mask
CompactMask detections annotate identically to dense bool masks.
tests/annotators/test_core.py:484
Functiontest_annotator_example_tab_groups_stay_within_material_limit
Assert no tab group exceeds MkDocs Material's 20-tab rendering limit.
tests/annotators/test_docs.py:108
Methodtest_area_calculation_and_size_specific_map
Test area calculation and size-specific mAP functionality.
tests/metrics/test_mean_average_precision_area.py:45
Methodtest_area_empty
(self)
tests/detection/test_compact_mask.py:283
Methodtest_area_matches_dense
(self)
tests/detection/test_compact_mask.py:274
Methodtest_area_matches_numpy_sum
_rle_area must equal np.sum on the original boolean array.
tests/detection/test_compact_mask.py:89
Methodtest_area_preserved_from_data
Test that area from data field is preserved (COCO case).
tests/metrics/test_mean_average_precision_area.py:99
Methodtest_area_return_dtype_per_branch
Area dtype matches the documented per-branch contract.
tests/detection/test_core.py:1885
Methodtest_array_protocol
(self)
tests/detection/test_compact_mask.py:320
Functiontest_as_coco_chains_ids_across_splits_without_collision
Regression for #768: exporting train/valid/test splits with the returned ids fed forward yields globally unique image and annotation ids.
tests/dataset/formats/test_coco.py:1694
Functiontest_as_coco_without_annotations_path_returns_starting_ids
When only writing images, the starting ids round-trip unchanged so chaining still works in the images-only branch.
tests/dataset/formats/test_coco.py:1755
Methodtest_averaging_methods
Test different averaging methods
tests/metrics/test_f1_score.py:303
Methodtest_averaging_methods
Test different averaging methods
tests/metrics/test_recall.py:202
Methodtest_averaging_methods
Test different averaging methods
tests/metrics/test_precision.py:271
Functiontest_base48_decode
_base48_decode returns raw delta-encoded integers from base-48 string.
tests/detection/utils/test_converters.py:645
Functiontest_base48_decode_malformed
_base48_decode raises ValueError on truncated continuation sequences.
tests/detection/utils/test_converters.py:657
Functiontest_base48_encode
_base48_encode converts raw delta integers to base-48 string.
tests/detection/utils/test_converters.py:673
Functiontest_base48_round_trip
_base48_decode(_base48_encode(v)) == v for any valid delta list.
tests/detection/utils/test_converters.py:691
Methodtest_batch_updates_perfect_detections
Test that batch updates with perfect detections get 1.0 mAP
tests/metrics/test_mean_average_precision.py:71
Methodtest_bool_array_preserves_compact_mask
(self)
tests/detection/test_compact_mask_integration.py:85
Methodtest_bool_list
Python list[bool] should behave like boolean masking.
tests/detection/test_compact_mask.py:229
Methodtest_bool_ndarray
(self)
tests/detection/test_compact_mask.py:216
Methodtest_both_compact_dispatches_to_rle
(self)
tests/detection/test_compact_mask_iou.py:216
Functiontest_box_iou
( box_true: list[float] | np.ndarray, box_detection: list[float] | np.ndarray, overlap_metric: str
tests/detection/utils/test_iou_and_nms.py:822
← previousnext →1,001–1,100 of 1,714, ranked by callers