Skip to content

Commit 34edbbb

Browse files
f-wrightAuto-format Bot
and
Auto-format Bot
authored
Fix bounding box example (#360)
I realized the example I added for bounding box mode was accessing the ROIs in the wrong spot. Just a tiny docstring update in this PR. --------- Co-authored-by: Auto-format Bot <[email protected]>
1 parent 48ad843 commit 34edbbb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/groundlight/experimental_api.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1011,7 +1011,8 @@ def create_bounding_box_detector( # noqa: PLR0913 # pylint: disable=too-many-ar
10111011
# Use the detector to find people in an image
10121012
image_query = gl.ask_ml(detector, "path/to/image.jpg")
10131013
print(f"Confidence: {image_query.result.confidence}")
1014-
print(f"Bounding boxes: {image_query.result.rois}")
1014+
print(f"Label: {image_query.result.label}")
1015+
print(f"Bounding boxes: {image_query.rois}")
10151016
10161017
:param name: A short, descriptive name for the detector.
10171018
:param query: A question about the object to detect in the image.

0 commit comments

Comments
 (0)