ImageBoundingBoxes

ImageBoundingBoxes[image]

gives an association of lists of bounding boxes for each identified category of objects in image.

ImageBoundingBoxes[image,category]

gives a list of bounding boxes for subimages identified as an instance of the specified category.

Details and Options

  • ImageBoundingBoxes attempts to find instances of an object category present in an image and returns a list of bounding boxes per category given as Rectangle objects.
  • Coordinates are assumed to be in the standard image coordinate system.
  • Possible forms for category include:
  • "concept"named concept, as used in "Concept" entities
    "word"English word, as used in WordData
    wordspecword sense specification, as used in WordData
    Entity[]any appropriate entity
    category1|category2|any of the categoryi
  • The following options can be given:
  • AcceptanceThresholdAutomaticidentification acceptance threshold
    MaxFeaturesAutomaticmaximum number of subimages to return
    MaxOverlapFractionAutomaticmaximum bounding box overlap
    TargetDevice"CPU"the target device on which to compute
  • ImageBoundingBoxes uses machine learning, and its training set and methods may change in different versions of the Wolfram Language, yielding different results.
  • ImageBoundingBoxes may download resources that will be stored in your local object store at $LocalBase, and can be listed using LocalObjects[] and removed using ResourceRemove.

Examples

open all close all

Basic Examples  (1)

Find the bounding boxes around identified birds in an image:

In[2]:=
Click for copyable input
In[3]:=
Click for copyable input
Out[3]=

Highlight the identified bounding boxes:

In[4]:=
Click for copyable input
Out[4]=

Scope  (2)

Options  (4)

Properties & Relations  (1)

Introduced in 2019
(12.0)