We write your reusable computer vision tools. 💜
991 matches across 14 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | tests/helpers.py | 27 | Create a Detections object from list-based inputs. This is a helper function primarily used for testing purpos |
| HIGH | tests/helpers.py | 85 | Create a KeyPoints object from list-based inputs. This is a helper function primarily used for testing purpose |
| HIGH | tests/helpers.py | 142 | Generate random bounding boxes within given image dimensions and size constraints. Creates `count` bounding bo |
| HIGH | tests/helpers.py | 359 | Create a synthetic YOLO-format dataset on disk. Generates dummy images with YOLO-format annotations, `data.yam |
| HIGH | tests/geometry/test_utils.py | 9 | Generate a semicircle with a given number of points. Parameters: n (int): amount of points in polyg |
| HIGH | src/supervision/metrics/detection.py | 108 | Calculate confusion matrix based on predicted and ground-truth detections. Args: targets: |
| HIGH | src/supervision/metrics/detection.py | 175 | Calculate confusion matrix based on predicted and ground-truth detections. Args: predictio |
| HIGH | src/supervision/metrics/detection.py | 583 | Calculate mean average precision based on predicted and ground-truth detections. Args: tar |
| HIGH | src/supervision/metrics/detection.py | 683 | Calculate Mean Average Precision based on predicted and ground-truth detections at different thresh |
| HIGH | src/supervision/key_points/core.py | 343 | Create a `sv.KeyPoints` object from RF-DETR `sv.Detections` output. RF-DETR attaches keypoint coordina |
| HIGH | src/supervision/key_points/core.py | 448 | Create a `sv.KeyPoints` object from the [Roboflow](https://roboflow.com/) API inference result or the [ |
| HIGH | src/supervision/key_points/core.py | 534 | Creates a `sv.KeyPoints` instance from a [MediaPipe](https://github.com/google-ai-edge/mediapipe) |
| HIGH | src/supervision/key_points/core.py | 658 | Creates a `sv.KeyPoints` instance from a [YOLOv8](https://github.com/ultralytics/ultralytics) pose infe |
| HIGH | src/supervision/key_points/core.py | 697 | Create a `sv.KeyPoints` instance from a [YOLO-NAS](https://github.com/Deci-AI/super-gradients/blob/master/YOLON |
| HIGH | src/supervision/key_points/core.py | 755 | Create a `sv.KeyPoints` object from the [Detectron2](https://github.com/facebookresearch/detectron2) in |
| HIGH | src/supervision/key_points/core.py | 806 | Create a `sv.KeyPoints` object from the [Transformers](https://github.com/huggingface/transformers) inf |
| HIGH | src/supervision/key_points/core.py | 890 | Filter keypoints using a 2D boolean mask of shape `(n, m)`. This method selects the **same set of keypoints fro |
| HIGH | src/supervision/key_points/core.py | 1110 | Convert a KeyPoints object to a Detections object. This approximates the bounding box of the detected o |
| HIGH | src/supervision/key_points/annotators.py | 257 | Annotates the given scene with covariance ellipses around keypoints. Args: scene: The imag |
| HIGH | src/supervision/dataset/core.py | 163 | Splits the dataset into two parts (training and testing) using the provided split_ratio. A |
| HIGH | src/supervision/dataset/core.py | 232 | Merge a list of `DetectionDataset` objects into a single `DetectionDataset` object. This m |
| HIGH | src/supervision/dataset/core.py | 394 | Creates a Dataset instance from PASCAL VOC formatted data. Args: images_directory_path: Pa |
| HIGH | src/supervision/dataset/core.py | 450 | Creates a Dataset instance from YOLO formatted data. Args: images_directory_path: The path |
| HIGH | src/supervision/dataset/core.py | 563 | Creates a Dataset instance from COCO formatted data. Args: images_directory_path: The path |
| HIGH | src/supervision/dataset/core.py | 809 | Splits the dataset into two parts (training and testing) using the provided split_ratio. A |
| HIGH | src/supervision/dataset/core.py | 902 | Load data from a multiclass folder structure into a ClassificationDataset. Args: root_dire |
| HIGH | src/supervision/dataset/formats/coco.py | 48 | Convert a list of class names to COCO ``categories`` entries. Category ids are emitted 1-indexed to comply with the |
| HIGH | src/supervision/dataset/formats/coco.py | 212 | Convert `Detections` to COCO ``annotations`` entries. The internal 0-indexed ``Detections.class_id`` is serialized |
| HIGH | src/supervision/dataset/formats/coco.py | 356 | Load COCO annotations and convert them to `Detections`. If `force_masks` is `False`, masks are still loaded fo |
| HIGH | src/supervision/annotators/core.py | 219 | Annotates the given scene with bounding boxes based on the provided detections. Args: scen |
| HIGH | src/supervision/annotators/core.py | 397 | Annotates the given scene with masks based on the provided detections. Args: scene: The im |
| HIGH | src/supervision/annotators/core.py | 508 | Annotates the given scene with polygons based on the provided detections. Args: scene: The |
| HIGH | src/supervision/annotators/core.py | 599 | Annotates the given scene with box masks based on the provided detections. Args: scene: Th |
| HIGH | src/supervision/annotators/core.py | 699 | Annotates the given scene with halos based on the provided detections. Args: scene: The im |
| HIGH | src/supervision/annotators/core.py | 803 | Annotates the given scene with ellipses based on the provided detections. Args: scene: The |
| HIGH | src/supervision/annotators/core.py | 899 | Annotates the given scene with box corners based on the provided detections. Args: scene: |
| HIGH | src/supervision/annotators/core.py | 992 | Annotates the given scene with circles based on the provided detections. Args: scene: The |
| HIGH | src/supervision/annotators/core.py | 1095 | Annotates the given scene with dots based on the provided detections. Args: scene: The ima |
| HIGH | src/supervision/annotators/core.py | 1226 | Annotates the given scene with labels based on the provided detections. Args: scene: The i |
| HIGH | src/supervision/annotators/core.py | 1543 | Annotates the given scene with labels based on the provided detections, with support for Unicode charac |
| HIGH | src/supervision/annotators/core.py | 1886 | Annotates the given scene by blurring regions based on the provided detections. Args: scen |
| HIGH | src/supervision/annotators/core.py | 2337 | Annotates the given scene with triangles based on the provided detections. Args: scene: Th |
| HIGH | src/supervision/annotators/core.py | 2453 | Annotates the given scene with bounding boxes with rounded edges based on the provided detections. |
| HIGH | src/supervision/annotators/core.py | 2598 | Annotates the given scene with percentage bars based on the provided detections. The percentage bars vi |
| HIGH | src/supervision/annotators/core.py | 2784 | Annotates the provided scene with scaled and cropped parts of the image based on the provided detection |
| HIGH | src/supervision/annotators/core.py | 2934 | Applies a colored overlay to the scene outside of the detected regions. Args: scene: The i |
| HIGH | src/supervision/annotators/utils.py | 260 | Shifts `label` bounding boxes into the frame so that they are fully contained within the given resolution, prio |
| HIGH | src/supervision/annotators/utils.py | 375 | Converts a hex color string (e.g. "#FF00FF" or "#FF00FF80") to an RGBA tuple. Args: hex_color: A hex c |
| HIGH | src/supervision/annotators/utils.py | 403 | Converts an RGBA tuple (0-255 each) to a hex color string. Args: rgba: RGBA values in range 0-255. |
| HIGH | src/supervision/annotators/utils.py | 435 | Computes a blur kernel size proportional to the shorter side of a bounding box. Args: x1: Left edge of |
| HIGH | src/supervision/annotators/utils.py | 458 | Computes a pixelation size proportional to the shorter side of a bounding box. Args: x1: Left edge of |
| HIGH | src/supervision/utils/internal.py | 61 | A decorator to mark a function's parameter as deprecated and issue a warning when used. Args: old_ |
| HIGH | src/supervision/utils/file.py | 25 | List files in a directory with specified extensions or all files if no extensions are provided. Args: |
| HIGH | src/supervision/utils/file.py | 75 | Read a text file and return a list of strings without newline characters. Optionally skip empty lines. Arg |
| HIGH | src/supervision/utils/file.py | 125 | Read a json file and return a dict. Args: file_path: The file path as a string or Path object. Re |
| HIGH | src/supervision/utils/notebook.py | 57 | Plots images in a grid using matplotlib. Args: images: A list of images as ImageType is a |
| HIGH | src/supervision/utils/video.py | 238 | Get a generator that yields the frames of the video. Args: source_path: The path of the video file. |
| HIGH | src/supervision/utils/image.py | 38 | Crop image based on bounding box coordinates. Args: image: The image to crop. xyxy: |
| HIGH | src/supervision/utils/image.py | 96 | Scale image by given factor. Scale factor > 1.0 zooms in, < 1.0 zooms out. Args: image: The image to s |
| HIGH | src/supervision/utils/image.py | 151 | Resize image to specified resolution. Can optionally maintain aspect ratio. Args: image: The image to |
| 74 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/helpers.py | 462 | def create_predictions_with_class_iou_tests( |
| LOW | tests/classification/test_core.py | 84 | def test_from_clip_empty_output_dtypes() -> None: |
| LOW | tests/classification/test_core.py | 92 | def test_from_timm_empty_output_dtypes() -> None: |
| LOW | tests/metrics/test_mean_average_recall.py | 147 | def complex_scenario_predictions(): |
| LOW | tests/metrics/test_mean_average_recall.py | 286 | def two_class_two_image_detections(): |
| LOW | tests/metrics/test_mean_average_recall.py | 326 | def three_class_single_image_detections(): |
| LOW | tests/metrics/test_mean_average_recall.py | 362 | def test_single_perfect_detection(): |
| LOW | tests/metrics/test_mean_average_recall.py | 378 | def test_complex_integration_scenario( |
| LOW | tests/metrics/test_mean_average_recall.py | 406 | def test_mar_at_k_limits_per_image_not_per_class(two_class_two_image_detections): |
| LOW | tests/metrics/test_mean_average_recall.py | 461 | def test_three_class_single_image_scenario(three_class_single_image_detections): |
| LOW | tests/metrics/test_mean_average_recall.py | 508 | def test_dataset_split_integration(yolo_dataset_two_classes): |
| LOW | tests/metrics/test_f1_score.py | 12 | def predictions_multiple_classes(self): |
| LOW | tests/metrics/test_f1_score.py | 39 | def test_initialization_default(self): |
| LOW | tests/metrics/test_f1_score.py | 47 | def test_initialization_custom(self): |
| LOW | tests/metrics/test_f1_score.py | 127 | def test_single_class_mixed_results( |
| LOW | tests/metrics/test_f1_score.py | 142 | def test_precision_recall_imbalance( |
| LOW | tests/metrics/test_f1_score.py | 175 | def test_different_iou_thresholds(self, predictions_iou_064, targets_iou_064): |
| LOW | tests/metrics/test_f1_score.py | 211 | def test_mismatched_list_lengths(self, detections_50_50, targets_50_50): |
| LOW | tests/metrics/conftest.py | 67 | def predictions_multiple_classes(): |
| LOW | tests/metrics/conftest.py | 114 | def predictions_confidence_ranking(): |
| LOW | tests/metrics/test_mean_average_precision.py | 8 | def test_single_perfect_detection(self, detections_50_50, targets_50_50): |
| LOW | tests/metrics/test_mean_average_precision.py | 17 | def test_multiple_perfect_detections(self): |
| LOW | tests/metrics/test_mean_average_precision.py | 36 | def test_batch_updates_perfect_detections(self, detections_50_50, targets_50_50): |
| LOW | tests/metrics/test_mean_average_precision.py | 256 | def test_mixed_classes_with_missing_detections( |
| LOW | tests/metrics/test_mean_average_precision.py | 286 | def test_empty_predictions_and_targets(self): |
| LOW | tests/metrics/test_precision.py | 11 | def predictions_multiple_classes(self): |
| LOW | tests/metrics/test_precision.py | 39 | def test_initialization_default(self): |
| LOW | tests/metrics/test_precision.py | 47 | def test_initialization_custom(self): |
| LOW | tests/metrics/test_precision.py | 147 | def test_different_iou_thresholds(self, predictions_iou_064, targets_iou_064): |
| LOW | tests/metrics/test_precision.py | 179 | def test_mismatched_list_lengths(self, detections_50_50, targets_50_50): |
| LOW | tests/metrics/test_detection.py | 198 | def test_detections_to_tensor( |
| LOW | tests/metrics/test_detection.py | 380 | def test_evaluate_detection_batch( |
| LOW | tests/metrics/test_detection.py | 452 | def test_compute_average_precision( |
| LOW | tests/metrics/test_detection.py | 951 | def test_confusion_matrix_on_yolo_dataset(self, yolo_dataset_structure): |
| LOW | tests/metrics/test_recall.py | 12 | def predictions_multiple_classes(self): |
| LOW | tests/metrics/test_recall.py | 39 | def test_initialization_default(self): |
| LOW | tests/metrics/test_recall.py | 47 | def test_initialization_custom(self): |
| LOW | tests/metrics/test_recall.py | 116 | def test_single_class_missed_detections( |
| LOW | tests/metrics/test_recall.py | 147 | def test_different_iou_thresholds(self, predictions_iou_064, targets_iou_064): |
| LOW | tests/metrics/test_recall.py | 166 | def test_multiple_predictions_one_target( |
| LOW | tests/metrics/test_recall.py | 190 | def test_mismatched_list_lengths(self, detections_50_50, targets_50_50): |
| LOW | tests/metrics/test_mean_average_precision_area.py | 45 | def test_area_calculation_and_size_specific_map( |
| LOW | tests/metrics/test_mean_average_precision_area.py | 99 | def test_area_preserved_from_data(self): |
| LOW | tests/key_points/test_skeletons.py | 9 | def test_skeleton_enum_values(self): |
| LOW | tests/key_points/test_skeletons.py | 17 | def test_skeletons_by_vertex_count(self): |
| LOW | tests/key_points/test_skeletons.py | 27 | def test_skeletons_by_edge_count(self): |
| LOW | tests/key_points/test_skeletons.py | 41 | def test_unique_vertices_calculation(self): |
| LOW | tests/key_points/test_skeletons.py | 47 | def test_skeletons_by_vertex_count_mapping_behaviour(self): |
| LOW | tests/key_points/test_from_rfdetr.py | 7 | def test_keypoints_from_rfdetr_detections() -> None: |
| LOW | tests/key_points/test_from_rfdetr.py | 32 | def test_keypoints_from_rfdetr_missing_keypoints_raises_clear_error() -> None: |
| LOW | tests/key_points/test_from_rfdetr.py | 43 | def test_keypoints_from_rfdetr_malformed_shape_raises_clear_error() -> None: |
| LOW | tests/key_points/test_from_rfdetr.py | 55 | def test_keypoint_annotator_uses_vertex_and_edge_rendering() -> None: |
| LOW | tests/key_points/test_core.py | 57 | def test_key_points_from_rfdetr_loads_keypoints_and_covariance( |
| LOW | tests/key_points/test_core.py | 81 | def test_key_points_from_rfdetr_without_precision_omits_covariance( |
| LOW | tests/key_points/test_core.py | 92 | def test_key_points_from_rfdetr_missing_keypoints_raises( |
| LOW | tests/key_points/test_core.py | 101 | def test_key_points_from_rfdetr_precision_requires_source_shape( |
| LOW | tests/key_points/test_core.py | 110 | def test_key_points_from_rfdetr_empty_keypoints_returns_empty( |
| LOW | tests/key_points/test_core.py | 532 | def test_key_points_as_detections( |
| LOW | tests/key_points/test_core.py | 543 | def test_key_points_as_detections_empty(): |
| LOW | tests/key_points/test_core.py | 550 | def test_key_points_as_detections_with_data(): |
| 379 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | tests/metrics/test_f1_score.py | 0 | test that mismatched prediction/target list lengths raise error |
| HIGH | tests/metrics/test_precision.py | 0 | test that mismatched prediction/target list lengths raise error |
| HIGH | tests/metrics/test_recall.py | 0 | test that mismatched prediction/target list lengths raise error |
| HIGH | tests/annotators/test_core.py | 0 | test that annotate method returns unmodified image when no detections |
| HIGH | tests/annotators/test_core.py | 0 | test that annotate method returns unmodified image when no detections |
| HIGH | tests/annotators/test_core.py | 0 | test that annotate method returns unmodified image when no detections |
| HIGH | tests/annotators/test_core.py | 0 | test that annotate method returns unmodified image when no detections |
| HIGH | tests/annotators/test_core.py | 0 | test that annotate method returns unmodified image when no detections |
| HIGH | tests/annotators/test_core.py | 0 | test that annotate method returns unmodified image when no detections |
| HIGH | tests/annotators/test_core.py | 0 | test that annotate method returns unmodified image when no detections |
| HIGH | tests/annotators/test_core.py | 0 | test that annotate method returns unmodified image when no detections |
| HIGH | tests/annotators/test_core.py | 0 | test that annotate method returns unmodified image when no detections |
| HIGH | tests/annotators/test_core.py | 0 | test that annotate method returns unmodified image when no detections |
| HIGH | tests/annotators/test_core.py | 0 | test that annotate method returns unmodified image when no detections |
| HIGH | tests/annotators/test_core.py | 0 | test that annotate method returns unmodified image when no detections |
| HIGH | tests/annotators/test_core.py | 0 | test that annotate method returns unmodified image when no detections |
| HIGH | tests/annotators/test_core.py | 0 | test that annotate method returns unmodified image when no detections |
| HIGH | tests/annotators/test_core.py | 0 | test that annotate method returns unmodified image when no detections |
| HIGH | tests/annotators/test_core.py | 0 | test that annotate method returns unmodified image when no detections |
| HIGH | tests/annotators/test_core.py | 0 | test that annotate method returns unmodified image when no detections |
| HIGH | tests/annotators/test_core.py | 0 | test that annotate method returns unmodified image when no detections |
| HIGH | tests/annotators/test_core.py | 0 | test that annotate method returns unmodified image when no detections |
| HIGH | tests/annotators/test_core.py | 0 | test that annotate method returns unmodified image when no masks |
| HIGH | tests/annotators/test_core.py | 0 | test that annotate method returns unmodified image when no masks |
| HIGH | tests/annotators/test_core.py | 0 | test that annotate method returns unmodified image when no masks |
| HIGH | tests/detection/test_vlm.py | 0 | ```json [ {"box_2d": [10, 20, 110, 120], "label": "cat"}, {"box_2d": [50, 100, 150, 200], "label": "dog"} ] ``` |
| HIGH | tests/detection/test_vlm.py | 0 | ```json [ {"box_2d": [10, 20, 110, 120], "label": "cat"}, {"box_2d": [50, 100, 150, 200], "label": "dog"} ] ``` |
| HIGH | tests/detection/test_vlm.py | 0 | ```json [ {"box_2d": [10, 20, 110, 120], "label": "cat"}, {"box_2d": [50, 100, 150, 200], "label": "dog"} ] ``` |
| HIGH | tests/detection/test_vlm.py | 0 | ```json [ {"box_2d": [10, 20, 110, 120], "label": "cat"} ] ``` |
| HIGH | tests/detection/test_vlm.py | 0 | ```json [ {"box_2d": [10, 20, 110, 120], "label": "cat"} ] ``` |
| HIGH | tests/detection/test_vlm.py | 0 | ```json [ {"box_2d": [10, 20, 110, 120], "label": "cat"} ] ``` |
| HIGH | tests/detection/test_vlm.py | 0 | ```json [ {"box_2d": [10, 20, 110, 120], "label": "cat"} ] ``` |
| HIGH | tests/detection/test_vlm.py | 0 | ```json [ {"box_2d": [10, 20, 110, 120], "label": "cat"} ] ``` |
| HIGH | tests/detection/test_vlm.py | 0 | ```json [ {"box_2d": [10, 20, 110, 120], "label": "cat", "confidence": 0.8}, {"box_2d": [50, 100, 150, 200], "label": "d |
| HIGH | tests/detection/test_vlm.py | 0 | ```json [ {"box_2d": [10, 20, 110, 120], "label": "cat", "confidence": 0.8}, {"box_2d": [50, 100, 150, 200], "label": "d |
| HIGH | tests/detection/test_vlm.py | 0 | ```json [ {"box_2d": [10, 20, 110, 120], "label": "cat", "confidence": 0.8}, {"box_2d": [50, 100, 150, 200], "label": "d |
| HIGH | examples/time_in_zone/utils/general.py | 0 | load polygon zone configurations from a json file. this function reads a json file which contains polygon coordinates, a |
| HIGH | examples/count_people_in_zone/ultralytics_example.py | 0 | load polygon zone configurations from a json file. this function reads a json file which contains polygon coordinates, a |
| HIGH | examples/count_people_in_zone/inference_example.py | 0 | load polygon zone configurations from a json file. this function reads a json file which contains polygon coordinates, a |
| HIGH | src/supervision/metrics/recall.py | 0 | reset the metric to its initial state, clearing all stored data. |
| HIGH | src/supervision/metrics/mean_average_recall.py | 0 | reset the metric to its initial state, clearing all stored data. |
| HIGH | src/supervision/metrics/f1_score.py | 0 | reset the metric to its initial state, clearing all stored data. |
| HIGH | src/supervision/metrics/precision.py | 0 | reset the metric to its initial state, clearing all stored data. |
| HIGH | src/supervision/metrics/mean_average_precision.py | 0 | reset the metric to its initial state, clearing all stored data. |
| HIGH | src/supervision/metrics/recall.py | 0 | add new predictions and targets to the metric, but do not compute the result. args: predictions: the predicted detection |
| HIGH | src/supervision/metrics/mean_average_recall.py | 0 | add new predictions and targets to the metric, but do not compute the result. args: predictions: the predicted detection |
| HIGH | src/supervision/metrics/f1_score.py | 0 | add new predictions and targets to the metric, but do not compute the result. args: predictions: the predicted detection |
| HIGH | src/supervision/metrics/precision.py | 0 | add new predictions and targets to the metric, but do not compute the result. args: predictions: the predicted detection |
| HIGH | src/supervision/metrics/recall.py | 0 | compute the confusion matrix for each class and iou threshold. assumes the matches and prediction_class_ids are sorted b |
| HIGH | src/supervision/metrics/f1_score.py | 0 | compute the confusion matrix for each class and iou threshold. assumes the matches and prediction_class_ids are sorted b |
| HIGH | src/supervision/metrics/precision.py | 0 | compute the confusion matrix for each class and iou threshold. assumes the matches and prediction_class_ids are sorted b |
| HIGH | src/supervision/metrics/recall.py | 0 | return boxes, masks or oriented bounding boxes from detections. |
| HIGH | src/supervision/metrics/mean_average_recall.py | 0 | return boxes, masks or oriented bounding boxes from detections. |
| HIGH | src/supervision/metrics/f1_score.py | 0 | return boxes, masks or oriented bounding boxes from detections. |
| HIGH | src/supervision/metrics/precision.py | 0 | return boxes, masks or oriented bounding boxes from detections. |
| HIGH | src/supervision/metrics/recall.py | 0 | return a copy of detections with contents filtered by object size. |
| HIGH | src/supervision/metrics/mean_average_recall.py | 0 | return a copy of detections with contents filtered by object size. |
| HIGH | src/supervision/metrics/f1_score.py | 0 | return a copy of detections with contents filtered by object size. |
| HIGH | src/supervision/metrics/precision.py | 0 | return a copy of detections with contents filtered by object size. |
| HIGH | src/supervision/metrics/recall.py | 0 | filter predictions and targets by object size category. |
| 8 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/helpers.py | 9 | |
| LOW | tests/classification/test_core.py | 1 | |
| LOW | tests/metrics/test_detection.py | 1 | |
| LOW | tests/metrics/test_mean_average_precision_area.py | 1 | |
| LOW | tests/dataset/test_utils.py | 1 | |
| LOW | tests/dataset/formats/test_pascal_voc.py | 1 | |
| LOW | tests/annotators/test_utils.py | 1 | |
| LOW | tests/utils/test_file.py | 1 | |
| LOW | tests/utils/test_logger.py | 1 | |
| LOW | tests/draw/test_color.py | 1 | |
| LOW | tests/detection/test_from_adapters.py | 1 | |
| LOW | tests/detection/test_compact_mask_integration.py | 3 | |
| LOW | tests/detection/test_compact_mask_iou.py | 11 | |
| LOW | tests/detection/test_core.py | 1 | |
| LOW | tests/detection/test_inference_slicer_compact.py | 9 | |
| LOW | tests/detection/test_line_counter.py | 1 | |
| LOW | tests/detection/test_from_sam.py | 1 | |
| LOW | tests/detection/test_compact_mask.py | 3 | |
| LOW | tests/detection/test_vlm.py | 1 | |
| LOW | tests/detection/test_json.py | 1 | |
| LOW | tests/detection/test_csv.py | 1 | |
| LOW | tests/detection/tools/test_inference_slicer.py | 1 | |
| LOW | tests/detection/utils/test_converters.py | 1 | |
| LOW | tests/detection/utils/test_masks.py | 1 | |
| LOW | tests/detection/utils/test_internal.py | 1 | |
| LOW | tests/detection/utils/test_polygons.py | 1 | |
| LOW | tests/detection/utils/test_iou_and_nms.py | 1 | |
| LOW | tests/detection/utils/test_boxes.py | 1 | |
| LOW | examples/traffic_analysis/ultralytics_example.py | 1 | |
| LOW | examples/traffic_analysis/inference_example.py | 1 | |
| LOW | examples/time_in_zone/rfdetr_file_example.py | 1 | |
| LOW | examples/time_in_zone/rfdetr_stream_example.py | 1 | |
| LOW | examples/time_in_zone/rfdetr_naive_stream_example.py | 1 | |
| LOW | examples/time_in_zone/ultralytics_stream_example.py | 1 | |
| LOW | examples/time_in_zone/scripts/draw_zones.py | 1 | |
| LOW | examples/time_in_zone/scripts/download_from_youtube.py | 1 | |
| LOW | examples/compact_mask/benchmark.py | 15 | |
| LOW | src/supervision/__init__.py | 9 | |
| LOW | src/supervision/__init__.py | 9 | |
| LOW | src/supervision/__init__.py | 9 | |
| LOW | src/supervision/__init__.py | 9 | |
| LOW | src/supervision/__init__.py | 9 | |
| LOW | src/supervision/__init__.py | 9 | |
| LOW | src/supervision/__init__.py | 9 | |
| LOW | src/supervision/__init__.py | 9 | |
| LOW | src/supervision/__init__.py | 9 | |
| LOW | src/supervision/__init__.py | 9 | |
| LOW | src/supervision/__init__.py | 9 | |
| LOW | src/supervision/__init__.py | 9 | |
| LOW | src/supervision/__init__.py | 9 | |
| LOW | src/supervision/__init__.py | 9 | |
| LOW | src/supervision/__init__.py | 9 | |
| LOW | src/supervision/__init__.py | 9 | |
| LOW | src/supervision/__init__.py | 9 | |
| LOW | src/supervision/__init__.py | 9 | |
| LOW | src/supervision/__init__.py | 9 | |
| LOW | src/supervision/__init__.py | 9 | |
| LOW | src/supervision/__init__.py | 9 | |
| LOW | src/supervision/__init__.py | 9 | |
| LOW | src/supervision/__init__.py | 9 | |
| 177 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | tests/detection/test_compact_mask_iou.py | 25 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/detection/test_compact_mask_iou.py | 27 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/detection/test_compact_mask_iou.py | 385 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/detection/test_compact_mask_iou.py | 387 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/detection/test_compact_mask.py | 748 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/detection/test_compact_mask.py | 750 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/detection/utils/test_converters.py | 526 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/detection/utils/test_converters.py | 528 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/detection/utils/test_converters.py | 549 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/detection/utils/test_converters.py | 551 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/detection/utils/test_converters.py | 615 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/detection/utils/test_converters.py | 617 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/detection/utils/test_converters.py | 667 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/detection/utils/test_converters.py | 669 | # --------------------------------------------------------------------------- |
| MEDIUM | docs/theme/main.html | 24 | {# ── GEO: JSON-LD structured data ──────────────────────────── #} |
| MEDIUM | docs/theme/main.html | 367 | {# ── How-to FAQ schema ─────────────────────────────────────── #} |
| MEDIUM | docs/theme/main.html | 410 | {# ── GEO: Open Graph + Twitter Card meta tags ──────────────── #} |
| MEDIUM | examples/compact_mask/benchmark.py | 221 | # ══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | examples/compact_mask/benchmark.py | 223 | # ══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | examples/compact_mask/benchmark.py | 1106 | # ══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | examples/compact_mask/benchmark.py | 1108 | # ══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | examples/compact_mask/benchmark.py | 1112 | # ── parameter matrix ────────────────────────────────────────────────────── |
| MEDIUM | examples/compact_mask/benchmark.py | 67 | # ══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | examples/compact_mask/benchmark.py | 69 | # ══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | examples/compact_mask/benchmark.py | 126 | # ══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | examples/compact_mask/benchmark.py | 128 | # ══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | examples/compact_mask/benchmark.py | 311 | # ══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | examples/compact_mask/benchmark.py | 313 | # ══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | examples/compact_mask/benchmark.py | 621 | # ══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | examples/compact_mask/benchmark.py | 623 | # ══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | examples/compact_mask/benchmark.py | 646 | # ── memory ────────────────────────────────────────────────────────────── |
| MEDIUM | examples/compact_mask/benchmark.py | 684 | # ── skip flags ────────────────────────────────────────────────────────── |
| MEDIUM | examples/compact_mask/benchmark.py | 865 | # ══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | examples/compact_mask/benchmark.py | 867 | # ══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | examples/compact_mask/benchmark.py | 1055 | # ══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | examples/compact_mask/benchmark.py | 1057 | # ══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | src/supervision/detection/compact_mask.py | 471 | # ------------------------------------------------------------------ |
| MEDIUM | src/supervision/detection/compact_mask.py | 473 | # ------------------------------------------------------------------ |
| MEDIUM | src/supervision/detection/compact_mask.py | 551 | # ------------------------------------------------------------------ |
| MEDIUM | src/supervision/detection/compact_mask.py | 553 | # ------------------------------------------------------------------ |
| MEDIUM | src/supervision/detection/compact_mask.py | 616 | # ------------------------------------------------------------------ |
| MEDIUM | src/supervision/detection/compact_mask.py | 618 | # ------------------------------------------------------------------ |
| MEDIUM | src/supervision/detection/compact_mask.py | 919 | # ------------------------------------------------------------------ |
| MEDIUM | src/supervision/detection/compact_mask.py | 921 | # ------------------------------------------------------------------ |
| MEDIUM | src/supervision/detection/compact_mask.py | 1063 | # ------------------------------------------------------------------ |
| MEDIUM | src/supervision/detection/compact_mask.py | 1065 | # ------------------------------------------------------------------ |
| MEDIUM | src/supervision/detection/compact_mask.py | 1188 | # ------------------------------------------------------------------ |
| MEDIUM | src/supervision/detection/compact_mask.py | 1190 | # ------------------------------------------------------------------ |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/annotators/test_docs.py | 38 | |
| LOW | examples/time_in_zone/scripts/draw_zones.py | 128 | |
| LOW | examples/speed_estimation/ultralytics_example.py | 39 | |
| LOW | examples/speed_estimation/yolo_nas_example.py | 40 | |
| LOW | examples/speed_estimation/inference_example.py | 40 | |
| LOW | src/supervision/metrics/detection.py | 451 | |
| LOW | src/supervision/metrics/recall.py | 155 | |
| LOW | src/supervision/metrics/mean_average_recall.py | 381 | |
| LOW | src/supervision/metrics/f1_score.py | 152 | |
| LOW | src/supervision/metrics/precision.py | 155 | |
| LOW | src/supervision/metrics/mean_average_precision.py | 459 | |
| LOW | src/supervision/metrics/mean_average_precision.py | 700 | |
| LOW | src/supervision/metrics/mean_average_precision.py | 825 | |
| LOW | src/supervision/metrics/mean_average_precision.py | 1337 | |
| LOW | src/supervision/metrics/mean_average_precision.py | 1399 | |
| LOW | src/supervision/key_points/core.py | 531 | |
| LOW | src/supervision/key_points/core.py | 962 | |
| LOW | src/supervision/key_points/annotators.py | 256 | |
| LOW | src/supervision/dataset/formats/coco.py | 204 | |
| LOW | src/supervision/dataset/formats/yolo.py | 93 | |
| LOW | src/supervision/annotators/core.py | 1984 | |
| LOW | src/supervision/annotators/core.py | 2689 | |
| LOW | src/supervision/annotators/core.py | 2859 | |
| LOW | src/supervision/annotators/utils.py | 39 | |
| LOW | src/supervision/annotators/utils.py | 79 | |
| LOW | src/supervision/utils/video.py | 283 | |
| LOW | src/supervision/validators/__init__.py | 127 | |
| LOW | src/supervision/assets/downloader.py | 41 | |
| LOW | src/supervision/detection/line_zone.py | 769 | |
| LOW | src/supervision/detection/compact_mask.py | 49 | |
| LOW | src/supervision/detection/compact_mask.py | 193 | |
| LOW | src/supervision/detection/core.py | 714 | |
| LOW | src/supervision/detection/core.py | 2213 | |
| LOW | src/supervision/detection/vlm.py | 662 | |
| LOW | src/supervision/detection/tools/inference_slicer.py | 178 | |
| LOW | src/supervision/detection/tools/inference_slicer.py | 275 | |
| LOW | src/supervision/detection/utils/internal.py | 54 | |
| LOW | src/supervision/detection/utils/internal.py | 241 | |
| LOW | src/supervision/detection/utils/internal.py | 302 | |
| LOW | src/supervision/detection/utils/internal.py | 356 | |
| LOW | src/supervision/detection/utils/masks.py | 291 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | tests/dataset/formats/test_yolo.py | 326 | # Create a small RGB image |
| MEDIUM | tests/dataset/formats/test_yolo.py | 334 | # Create a minimal data.yaml |
| MEDIUM | src/supervision/metrics/mean_average_precision.py | 469 | # Create an empty EvaluationDataset object for the predictions |
| MEDIUM | src/supervision/metrics/mean_average_precision.py | 1470 | # Create a coco object with the targets |
| MEDIUM | src/supervision/metrics/mean_average_precision.py | 1474 | # Create a coco evaluator with the predictions |
| MEDIUM | src/supervision/metrics/mean_average_precision.py | 1508 | # Create the final MeanAveragePrecisionResult object |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | docs/how_to/benchmark_a_model.md | 58 | rf = Roboflow(api_key="<YOUR_API_KEY>") |
| HIGH | docs/how_to/benchmark_a_model.md | 58 | rf = Roboflow(api_key="<YOUR_API_KEY>") |
| HIGH | docs/how_to/benchmark_a_model.md | 72 | rf = Roboflow(api_key="<YOUR_API_KEY>") |
| HIGH | docs/how_to/benchmark_a_model.md | 72 | rf = Roboflow(api_key="<YOUR_API_KEY>") |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | examples/traffic_analysis/setup.sh | 6 | # Check if 'data' directory does not exist and then create it |
| LOW | examples/count_people_in_zone/setup.sh | 6 | # Check if 'data' directory does not exist and then create it |
| LOW | src/supervision/metrics/detection.py | 800 | # Check if we are running on NumPy 2.0+ or older |
| LOW | src/supervision/metrics/mean_average_precision.py | 488 | # Check if the predictions contain any unsupported keys |
| LOW | src/supervision/metrics/mean_average_precision.py | 961 | # Set recall to either the final recall value or 0 (when there |
| LOW | src/supervision/detection/compact_mask.py | 101 | # Check if last run has same parity (True/False) as current chunk. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | tests/detection/test_compact_mask_iou.py | 195 | # Ensure no all-false mask (diagonal would be undefined). |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | src/supervision/metrics/recall.py | 429 | |
| MEDIUM | src/supervision/metrics/precision.py | 431 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | pyproject.toml | 142 | # Enable linting rules for code style, imports, and best practices. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | src/supervision/utils/video.py | 198 | except Exception as exc: |
| LOW | src/supervision/utils/video.py | 417 | except Exception as exc: |
| LOW | src/supervision/detection/vlm.py | 289 | except Exception: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | src/supervision/utils/internal.py | 141 | def my_method(cls): |