Copy {
"video_data": {
"frames": [
{
"src": "https://sample-url-frame-01.png",
"frame_id": "frame-01"
},
{
"src": "https://sample-url-frame-02.png",
"frame_id": "frame-02"
}
]
},
"maker_response": {....}
}
Copy > example maker_response structure
"maker_response": {
"video2d": {
"data": {
"annotations": [
{
"_id": "24a46dde-7e65-4cfb-b31e-fd6fe905fcfa",
"type": "rectangle",
"label": "bicycle",
"frames": {
"frame-01": {
"_id": "1302b2d7-db3c-4d02-828d-ff33d8678cce",
"type": "rectangle",
"label": "bicycle",
"attributes": {
"visibility": {
"state": "editable",
"value": "3"
}
},
"coordinates": [
{
"x": 0.373617,
"y": 0.556455
},
{
"x": 0.383116,
"y": 0.556455
},
{
"x": 0.383116,
"y": 0.60279
},
{
"x": 0.373617,
"y": 0.60279
}
]
},
"frame-02": {
"_id": "b34fb2d7-db3c-4d02-828d-ff33d8678cce",
"type": "rectangle",
"label": "bicycle",
"attributes": {
"visibility": {
"state": "editable",
"value": "3"
}
},
"coordinates": [
{
"x": 0.373617,
"y": 0.556455
},
{
"x": 0.383116,
"y": 0.556455
},
{
"x": 0.383116,
"y": 0.60279
},
{
"x": 0.373617,
"y": 0.60279
}
]
}
}
},
{
"_id": "371aa366-422b-4491-8ef1-8334df973bab",
"label": "Side lane",
"type": "line",
"frames": {
"frame-01": {
"_id": "48398c49-cd92-4090-bc23-d4f8d10687e5",
"type": "line",
"label": "Side lane",
"attributes": {
"Color": {
"state": "editable",
"value": "White"
},
"Direction": {
"state": "editable",
"value": "Vertical"
}
},
"points": {
"p1": {"x": 0.193483, "y": 0.827799},
"p2": {"x": 0.420914, "y": 0.519008},
"p3": {"x": 0.4674, "y": 0.4566}
},
"edges": {
"e1": ["p1", "p2"],
"e2": ["p2", "p3"]
}
}
}
},
{
"_id": "8fe03d8a-e64d-447b-a844-c274b3648a28",
"type": "polygon",
"label": "bus",
"frames": {
"frame-01": {
"_id": "273e4b1e-bf05-426b-82e3-d92b55ae6b7a",
"type": "polygon",
"edges": {
"e1": ["p1", "p2"],
"e2": ["p2", "p3"],
"e3": ["p3", "p4"],
"e4": ["p4", "p5"],
"e5": ["p5", "p6"],
"e6": ["p6", "p7"],
"e7": ["p7", "p1"]
},
"label": "bus",
"points": {
"p1": {"x": 0.144515, "y": 0.492196},
"p2": {"x": 0.261425, "y": 0.35079},
"p3": {"x": 0.33867, "y": 0.414256},
"p4": {"x": 0.353284, "y": 0.560115},
"p5": {"x": 0.243332, "y": 0.667005},
"p6": {"x": 0.193924, "y": 0.667005},
"p7": {"x": 0.165392, "y": 0.572363}
},
"attributes": {
"is_visible": {
"state": "editable",
"value": "Yes"
}
}
}
}
}
]
}
}
}
}
Rectangle Polygon Landmark Line
Copy > example rectangle annotation
{
"_id": "72c888f6-b365-4f27-ad57-d7841da2de0c",
"label": "Car",
"coordinates": [
{
"x": 0.12,
"y": 0.12
},
{
"x": 0.24,
"y": 0.12
},
{
"x": 0.24,
"y": 0.24
},
{
"x": 0.12,
"y": 0.24
}
],
"attributes": {
"occlusion": {
"value": "100%"
},
"visibility": {
"value": "partially_visible"
}
},
"state": "editable"
}
Each annotation has the following values:
id
: Unique ID for the annotation in a frame.
label
: Class (label) selected for the annotation.
coordinates
: List of (x,y) coordinates for the rectangle in the order:
[Top left, top right, bottom right, bottom left]
attributes
: It contains the name of the attribute and the value selected.
state
: It defines the state of the annotation in GT create, it has two possible values:
editable
: The annotator will be able to make any changes to the annotation.
non_editable
: The annotator will be unable to make any changes to the annotation.
Copy > example polygon annotation
{
"_id": "cbdcd7c4-8ba7-4bce-bfdd-fa3a9a2c0d47",
"edges": {
"e1": [
"p1",
"p2"
],
"e2": [
"p2",
"p3"
],
"e3": [
"p3",
"p4"
],
"e4": [
"p4",
"p5"
],
"e5": [
"p5",
"p6"
],
"e6": [
"p6",
"p1"
]
},
"label": "Car",
"state": "editable",
"points": {
"p1": {
"x": 0.373737,
"y": 0.12367
},
"p2": {
"x": 0.480696,
"y": 0.104769
},
"p3": {
"x": 0.600541,
"y": 0.103051
},
"p4": {
"x": 0.592809,
"y": 0.259408
},
"p5": {
"x": 0.478118,
"y": 0.25769
},
"p6": {
"x": 0.41884,
"y": 0.225044
}
},
"attributes": {
"occlusion": {
"value": "100%"
},
"visibility": {
"value": "partially_visible"
}
}
}
Each annotation will have the following values:
id
: Unique ID for the annotation in a frame.
label
: Class selected for the annotation.
edges
: A polygon annotation can have one or more edges, edges
key defines all the edges for the annotation, where each edge is a list of two points.
points
: It contains the label and coordinates of all the points.
attributes
: It contains the name of the attribute and the value selected.
state
: It defines the state of the annotation in GT create, it has two possible values:
editable
: Annotator will be able to make any changes to the annotation.
non_editable
: Annotator will be unable to make any changes to the annotation.
Copy > example landmark annotation
{
"_id": "8834d6ed-78cc-41f9-8729-3d68093a2889",
"label": "Traffic light",
"state": "editable",
"points": {
"p1": {
"x": 0.375026,
"y": 0.627106,
"label": 1
},
"p2": {
"x": 0.452345,
"y": 0.651161,
"label": 2
},
"p3": {
"x": 0.560593,
"y": 0.707862,
"label": 3
}
},
"attributes": {
"Color": {
"value": "Green"
}
}
}
Each annotation will have the following values:
id
: Unique ID for the annotation in a frame.
label
: Class selected for the annotation.
points
: It contains the label and coordinates of all the points.
attributes
: It contains the name of the attribute and the value selected.
state
: It defines the state of the annotation in GT create, it has two possible values:
editable
: The annotator will be able to make any changes to the annotation.
non_editable
: The annotator will be unable to make any changes to the annotation.
Copy > example line annotation data
{
"_id": "abc0a04b-dc1e-4de6-af29-fbdde53b61e7",
"edges": {
"e1": [
"p1",
"p2"
],
"e2": [
"p2",
"p3"
],
"e3": [
"p3",
"p4"
],
"e4": [
"p4",
"p5"
],
"e5": [
"p5",
"p6"
]
},
"label": "Lane",
"state": "editable",
"points": {
"p1": {
"x": 0.192036,
"y": 0.487931
},
"p2": {
"x": 0.314459,
"y": 0.438102
},
"p3": {
"x": 0.545129,
"y": 0.38312
},
"p4": {
"x": 0.699768,
"y": 0.398584
},
"p5": {
"x": 0.747448,
"y": 0.451848
},
"p6": {
"x": 0.578634,
"y": 0.560096
}
},
"attributes": {
"visibility": {
"value": "partially_visible"
}
}
}
Each annotation will have the following values:
id
: Unique ID for the annotation in a frame.
label
: Class selected for the annotation.
edges
: A line annotation can have one or more edges, edges
key defines all the edges for the annotation, where each edge is a list of two points.
points
: It contains the label and coordinates of all the points.
attributes
: It contains the name of the attribute and the value selected.
state
: It defines the state of the annotation in GT create, it has two possible values:
editable
: Annotator will be able to make any changes to the annotation.
non_editable
: Annotator will be unable to make any changes to the annotation.