A
A
API Reference
Search…
Get job results
get
https://api.playment.io
/v1/projects/:project_id/jobs/:job_id
JOB RESULT
get
https://api.playment.io
/v1/attachments?url=:result_url
ATTACHMENT

Result Object

1
{
2
"data": {
3
"annotation_data": {
4
"annotations": []
5
},
6
"video_data": {
7
"frames": [] //This is the same list you sent while creating the job
8
}
9
}
10
}
Copied!
The annotations list contains objects, where each object is a tracker. A tracker tracks an object across frames. The frames key in the tracker object maps each annotation object in the tracker to the frame_id it belongs to.
1
{
2
"_id": "",
3
"type": "rectangle", // rectangle/polygon/line/cuboid/landmark
4
"label": "",
5
"frames" : {
6
"frame001" : {<annotation_object>}
7
}
8
}
Copied!
You can check the data structures for the various annotation objects below:
Rectangle
Polygon
Line
Cuboid
Landmark
1
{
2
"_id": "0e6d895e-2484-439a-b62b-d8a0afb3d190",
3
"label": "Cat".
4
"attributes": {
5
"pose": {
6
"value": "standing"
7
},
8
"breed": {
9
"value": "Persian"
10
}
11
}
12
"coordinates": [
13
{"x": 0.00398, "y": 0.00558},
14
{"x": 0.05404, "y": 0.00558},
15
{"x": 0.05404, "y": 0.09096},
16
{"x": 0.00398, "y": 0.09096}
17
]
18
}
Copied!
1
{
2
"_id": "8f8897ad-e07b-4e55-9dbe-61f6b9df85c5",
3
"label": "face_mask",
4
"attributes": {
5
"covers_nose": {
6
"value": "Yes"
7
},
8
}
9
"points": {
10
"p1": {"x": 0.286774, "y": 0.892502},
11
"p2": {"x": 0.385849, "y": 0.576888},
12
"p3": {"x": 0.426721, "y": 0.469081},
13
"p4": {"x": 0.288623, "y": 0.253878},
14
"p5": {"x": 0.148623, "y": 0.353878}
15
},
16
"edges": {
17
"e1": ["p1", "p2"],
18
"e2": ["p2", "p3"],
19
"e3": ["p3", "p4"],
20
"e4": ["p4", "p4"],
21
"e5": ["p5", "p1"]
22
}
23
}
Copied!
1
{
2
"_id": "8f8897ad-e07b-4e55-9dbe-61f6b9df85c5",
3
"label": "lane_divider",
4
"attributes": {
5
"raised": {
6
"value": "Yes"
7
},
8
}
9
"points": {
10
"p1": {"x": 0.286774, "y": 0.892502},
11
"p2": {"x": 0.285849, "y": 0.876888},
12
"p3": {"x": 0.286774, "y": 0.869081},
13
"p4": {"x": 0.288623, "y": 0.853878}
14
}
15
}
Copied!
1
{
2
"_id": "8f8897ad-e07b-4e55-9dbe-61f6b9df85c5",
3
"label": "Car",
4
"attributes" : {
5
"faces_visible": {
6
"value": ["right","back"]
7
}
8
},
9
"points": {
10
"p1": {"x": 0.17,"y": 0.58},
11
"p2": {"x": 0.26,"y": 0.58},
12
"p3": {"x": 0.26,"y": 0.49},
13
"p4": {"x": 0.17,"y": 0.49},
14
"p5": {"x": 0.24,"y": 0.51},
15
"p6": {"x": 0.35,"y": 0.52},
16
"p7": {"x": 0.35,"y": 0.36},
17
"p8": {"x": 0.25,"y": 0.37}
18
},
19
"front": {
20
"coordinates": ["p1","p2","p3","p4"]
21
},
22
"side": {
23
"coordinates": ["p2","p3","p5","p6"]
24
},
25
"back": {
26
"coordinates": ["p7","p8","p5","p6"]
27
}
28
}
Copied!
1
{
2
"_id": "e7e3353f-2ffe-432a-a14f-9cb9a6f4b735",
3
"label": "nose",
4
"attributes": {
5
"visible": {
6
"value": "Partially"
7
},
8
}
9
"points": {
10
"p1": { "x": 0.17, "y": 0.58, "label": 1 },
11
"p2": { "x": 0.26, "y": 0.63, "label": 2 },
12
"p3": { "x": 0.27, "y": 0.63, "label": 3 },
13
"p4": { "x": 0.29, "y": 0.59, "label": 4 },
14
"p5": { "x": 0.25, "y": 0.46, "label": 5 },
15
"p6": { "x": 0.22, "y": 0.42, "label": 6 }
16
}
17
}
Copied!
Last modified 2mo ago