Skip to content

FindBoundingBox

Chaunte W. Lacewell edited this page Aug 26, 2022 · 1 revision

Finding Bounding Boxes

FindBoundingBox will not return anything by default. If the bounding box was associated with an image or frame, the blob keyword can be set to true in the results block and the pixel data will be returned. Likewise, including the _coordinates keyword in the list option of the results parameter will return a list of the coordinates matching the specified criteria.

Parameters

  • [optional] _ref: local id to be used as reference for a given entity.
  • [optional] unique: indicates whether a single element is expected to match that condition.
  • [optional] image: reference to an image or a frame

Blocks

If nothing is specified, all bounding boxes in VDMS are returned. If rectangle is specified, the bounding boxes returned must be fully within the dimensions indicated by the given rectangle. If image is specified, the bounding boxes must be from that image or frame.

Common usage of this call is to specify an image that contains bounding boxes (as in "find all the regions of interest in this image") or to find all bounding boxes with a given name ("find all regions of interest that correspond to Jane").

Examples

// Find the regions of interest from the image named "interesting_stuff"
"FindImage" : {
    "_ref" : 1,
    "constraints" : {
        "name" : [ "==", "interesting_stuff"]
    }
}
"FindBoundingBox": {
    "_ref" : 2,
    "image" : 1, 
    "results": {
        "list": ["_coordinates"]
    }
}

// Find all regions of interest that represent Jane Doe
"FindBoundingBox": {
    "_ref" : 2,
    "constraints" : {
        "name" : ["==", "Jane Doe"]
    }
    "results": {
        "blob": true
    }
}
Clone this wiki locally