rectangle
The rectangle parameter is used to specify the coordinates of a BoundingBox object, as follows:
[{
"AddImage": {
"_ref": 1,
"format": "png",
"properties": {
"description": "dog playing in a park"
}
}
}, {
"AddBoundingBox": {
"image_ref": 1,
"label": "Dog",
"rectangle": {
"x": 200,
"y": 100,
"width": 300,
"height": 300
},
"properties": {
"label_id": 32
}
}
}]
where x and y are the coordinates of the upper left corner of the BoundingBox and w and h are the width and height.