polygon
polygon use case example
To describe a polygon dataset with one camera sensor:
sensor: camera (#camera1)
ontology:
people
ischild - boolean (static info)
direction - front, left, right, back (dynamic info)
age - num (static info)
car
color - white, silver, blue, red, black (static info)
truck
bus
Example Code
{
"visionai": {
"frame_intervals": [
{
"frame_start": 0,
"frame_end": 0
}
],
"frames": {
"000000000000": {
"objects": {
"893ac389-7782-4bc3-8f61-09a8e48c819f": {
"object_data": {
"poly2d": [
{
"name": "poly2d_shape",
"stream": "camera1",
"val": [
236.0,
275.0,
6.0,
123.0,
47.0,
174.0,
185.0,
58.0
],
"closed": true,
"mode": "MODE_POLY2D_ABSOLUTE",
"attributes": {
"vec": [
{
"name": "direction",
"attributes": {
"num": [
{
"name": "probability",
"val": 0.7
}
]
},
"val": [
"front"
]
}
]
}
}
]
}
},
"893ac389-7782-4bc3-8f61-09a8e48c819a": {
"object_data": {
"poly2d": [
{
"name": "poly2d_shape",
"stream": "camera1",
"confidence_score": 0.6,
"val": [
761.565,
225.46,
98.33000000000004,
164.92000000000002
],
"closed": true,
"mode": "MODE_POLY2D_ABSOLUTE"
}
]
}
},
"893ac389-7782-4bc3-8f61-09a8e48c819b": {
"object_data": {
"poly2d": [
{
"closed": true,
"mode": "MODE_POLY2D_ABSOLUTE",
"name": "poly2d_shape",
"stream": "camera1",
"confidence_score": 0.6,
"val": [
761.565,
225.46,
98.33000000000004,
164.92000000000002
]
}
]
}
},
"893ac389-7782-4bc3-8f61-09a8e48c819c": {
"object_data": {
"poly2d": [
{
"closed": true,
"mode": "MODE_POLY2D_ABSOLUTE",
"name": "poly2d_shape",
"stream": "camera1",
"confidence_score": 0.6,
"val": [
761.565,
225.46,
98.33000000000004,
164.92000000000002
]
}
]
}
}
},
"frame_properties": {
"streams": {
"camera1": {
"uri": "https://helenmlopsstorageqatest.blob.core.windows.net/vainewformat/demodataset_small/kitti_large/000000000000/data/camera1/000000000000.png"
}
}
}
}
},
"objects": {
"893ac389-7782-4bc3-8f61-09a8e48c819f": {
"frame_intervals": [
{
"frame_start": 0,
"frame_end": 0
}
],
"name": "people01",
"object_data": {
"num": [
{
"name": "age",
"val": 8
}
],
"boolean": [
{
"name": "ischild",
"val": true
}
]
},
"object_data_pointers": {
"poly2d_shape": {
"attributes": {
"direction": "vec"
},
"frame_intervals": [
{
"frame_start": 0,
"frame_end": 0
}
],
"type": "poly2d"
},
"ischild": {
"type": "boolean",
"frame_intervals": [
{
"frame_start": 0,
"frame_end": 0
}
]
},
"age": {
"type": "num",
"frame_intervals": [
{
"frame_start": 0,
"frame_end": 0
}
]
}
},
"type": "people"
},
"893ac389-7782-4bc3-8f61-09a8e48c819a": {
"frame_intervals": [
{
"frame_start": 0,
"frame_end": 0
}
],
"name": "car01",
"object_data": {
"text": [
{
"name": "color",
"stream": "camera1",
"val": "black"
}
]
},
"object_data_pointers": {
"poly2d_shape": {
"frame_intervals": [
{
"frame_start": 0,
"frame_end": 0
}
],
"type": "poly2d"
},
"color": {
"type": "text",
"frame_intervals": [
{
"frame_start": 0,
"frame_end": 0
}
]
}
},
"type": "car"
},
"893ac389-7782-4bc3-8f61-09a8e48c819b": {
"frame_intervals": [
{
"frame_start": 0,
"frame_end": 0
}
],
"name": "truck01",
"object_data_pointers": {
"poly2d_shape": {
"attributes": null,
"frame_intervals": [
{
"frame_start": 0,
"frame_end": 0
}
],
"type": "poly2d"
}
},
"type": "truck"
},
"893ac389-7782-4bc3-8f61-09a8e48c819c": {
"frame_intervals": [
{
"frame_start": 0,
"frame_end": 0
}
],
"name": "bus01",
"object_data_pointers": {
"poly2d_shape": {
"attributes": null,
"frame_intervals": [
{
"frame_start": 0,
"frame_end": 0
}
],
"type": "poly2d"
}
},
"type": "bus"
}
},
"streams": {
"camera1": {
"type": "camera",
"uri": "https://helenmlopsstorageqatest.blob.core.windows.net/vainewformat/demodataset_small/kitti_large/000000000000/data/camera1/000000000000.png",
"description": "Frontal camera"
}
},
"metadata": {
"schema_version": "1.0.0"
}
}
}
Last updated