Links
Comment on page

Bounding Box (Rectangle)

Use Bounding Box labels for Object Detection

Overview

The Rectangle schema element creates an array of objects with data consisting of minimum and maximum XY coordinates. These minimum and maximum values define the boundaries of the rectangle. The XY coordinate values are relative (0.0 to 1.0) to width and height respectively.

When to use

Rectangles enable object detection.
Architectures such as R-CNN, YOLO and SSD support rectangles (also known as bounding boxes) as input. Some use cases include detecting people in photos, buildings in satellite imagery, and gunshots in audio spectrograms.
Three Cheetahs detected

Define a Bounding Box (Rectangle) Label

  1. 1.
    Navigate to the "Label Definitions" tab of your dataset
  2. 2.
    Type label name in the "Name" field
  3. 3.
    Bounding Box is default in "Type" dropdown
  4. 4.
    Select label color from the color chooser menu
  5. 5.
    Click "Save" button
  6. 6.
    Repeat as needed for multiple labels
After you've defined a Bounding Box, you can label a rectangle:
Bounding Box also supports Sublabels:

Data Format

The Bounding Box (Rectangle) schema element creates an array of objects with data consisting of minimum and maximum XY coordinates. These minimum and maximum values define the boundaries of the rectangle. The XY coordinate values are relative (0.0 to 1.0) to width and height respectively.
{
"type": "rectangle",
"data": {
"min": [0.03108985876522894, 0],
"max": [0.24836992510709158, 0.26650752787428983]
},
"children": {}
}

Labeling a Bounding Box

Once you've defined a bounding box, you can start annotating your data.

Training an Object Detection Model

You can train a bounding box object detection model by select Bounding Box as a "Model Output Option" in your SmartML configuration.