Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/groundlight/experimental_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1011,7 +1011,8 @@ def create_bounding_box_detector( # noqa: PLR0913 # pylint: disable=too-many-ar
# Use the detector to find people in an image
image_query = gl.ask_ml(detector, "path/to/image.jpg")
print(f"Confidence: {image_query.result.confidence}")
print(f"Bounding boxes: {image_query.result.rois}")
print(f"Label: {image_query.result.label}")
print(f"Bounding boxes: {image_query.rois}")

:param name: A short, descriptive name for the detector.
:param query: A question about the object to detect in the image.
Expand Down
Loading