From 3152f5f0ea6ff399f3c2f4a361fc0fc82c65cfed Mon Sep 17 00:00:00 2001 From: Onuralp SEZER Date: Mon, 14 Jul 2025 10:59:49 +0300 Subject: [PATCH] =?UTF-8?q?docs:=20=F0=9F=93=9D=20add=20docs=20to=20confid?= =?UTF-8?q?ence=20scores=20parameter=20to=20from=5Fgoogle=5Fgemini=5F2=5F5?= =?UTF-8?q?=20function?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supervision/detection/vlm.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/supervision/detection/vlm.py b/supervision/detection/vlm.py index 3d8a3238..80335cec 100644 --- a/supervision/detection/vlm.py +++ b/supervision/detection/vlm.py @@ -431,6 +431,9 @@ def from_google_gemini_2_5( the class indices for each bounding box masks: Optional[np.ndarray]: An array of shape `(n, h, w)` containing the segmentation masks for each bounding box + confidence: Optional[np.ndarray]: An array of shape `(n,)` containing + the confidence scores for each bounding box. If not provided, + it defaults to 0.0 for each box. """ w, h = validate_resolution(resolution_wh)