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

Create a Bounding Box (Rectangle) Label

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

Data Format

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.
1
[
2
0:{
3
"type":"rectangle"
4
"data":{
5
"min":[
6
0:0.41
7
1:0.59
8
]
9
"max":[
10
0:0.44
11
1:0.7
12
]
13
}
14
}
15
]
16
Copied!
Last modified 2mo ago