From ff3c85d38026bf14b500b318aacaeb3dc105e260 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 14 Jul 2025 14:57:21 +0000 Subject: [PATCH] =?UTF-8?q?fix(pre=5Fcommit):=20=F0=9F=8E=A8=20auto=20form?= =?UTF-8?q?at=20pre-commit=20hooks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supervision/detection/core.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/supervision/detection/core.py b/supervision/detection/core.py index 677a0a12..4ecb98ba 100644 --- a/supervision/detection/core.py +++ b/supervision/detection/core.py @@ -923,7 +923,7 @@ class Detections: For each detected object, provide: - "label": exact class name from the list above - - "confidence": how certain you are (0.0 to 1.0) + - "confidence": how certain you are (0.0 to 1.0) - "box_2d": bounding box [ymin, xmin, ymax, xmax] normalized 0-1000 - "mask": binary mask of the object in the image, as a base64 encoded string @@ -938,7 +938,7 @@ class Detections: "mask": "..." }, { - "label": "kite", + "label": "kite", "confidence": 0.80, "box_2d": [50, 150, 250, 350], "mask": "..." @@ -996,7 +996,7 @@ class Detections: detections.class_id # array([0, 1]) ``` - + Examples: ```python @@ -1179,7 +1179,7 @@ class Detections: For each detected object, provide: - "label": exact class name from the list above - - "confidence": how certain you are (0.0 to 1.0) + - "confidence": how certain you are (0.0 to 1.0) - "box_2d": bounding box [ymin, xmin, ymax, xmax] normalized 0-1000 - "mask": binary mask of the object in the image, as a base64 encoded string @@ -1194,7 +1194,7 @@ class Detections: "mask": "..." }, { - "label": "kite", + "label": "kite", "confidence": 0.80, "box_2d": [50, 150, 250, 350], "mask": "..."