Skip to contents

Returns the bounding box encompassing all detected objects.

Usage

sam_bbox(x)

Arguments

x

A geosam object from sam_detect() or sam_explore().

Value

An sf bbox object, or NULL if no detections.

Examples

if (FALSE) { # \dontrun{
result <- sam_detect(image = "satellite.tif", text = "building")
bbox <- sam_bbox(result)
} # }