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

Simple Segmentation
Instance Aware Segmentation
1
{
2
"legend": {
3
"#fdffd34": "Car",
4
"#f23334": "Sky",
5
"#fd2d34": "Tree"
6
},
7
"url": "https://playment-data-uploads.s3.ap-south-1.amazonaws.com/clients/e81bddc9-e39c-4a7f-bef4-caee6f757009/projects/6f5ed111-1a46-4e06-8d72-c0dec50ac0b7/batch_export_result/0f0abfb5-4c5f-4838-a89e-92d5234b0b09/576d8391-0ce5-4cd4-969a-f3806e1cf2f4/source.png"
8
}
Copied!
1
{
2
"legend": {
3
"#00c537": "car # 1",
4
"#01d9fc": "pedestrian # 1",
5
"#fac1c2": "pedestrian # 2",
6
"#fb0379": "pedestrian # 3",
7
"#fcbe92": "car # 2",
8
"#fda7df": "vegetation"
9
},
10
"instances": [
11
{
12
"_id": "8037614b-b5b9-420b-8e82-d601b1a7f276",
13
"color": "#00c537",
14
"index": 1,
15
"value": "car # 1",
16
"class_id": "f0443067-b6a5-4eae-a743-c967d606bb01",
17
"attributes": []
18
},
19
{
20
"_id": "bc3a8010-82cc-40cc-bac0-9a1511b5ea0c",
21
"color": "#fcbe92",
22
"index": 2,
23
"value": "car # 2",
24
"class_id": "f0443067-b6a5-4eae-a743-c967d606bb01",
25
"attributes": []
26
},
27
{
28
"_id": "0037614b-b5b9-420b-8e82-d601b1a7f276",
29
"color": "#01d9fc",
30
"index": 1,
31
"value": "pedestrian # 1",
32
"class_id": "00443067-b6a5-4eae-a743-c967d606bb01",
33
"attributes": []
34
},
35
{
36
"_id": "1c3a8010-82cc-40cc-bac0-9a1511b5ea0c",
37
"color": "#fac1c2",
38
"index": 2,
39
"value": "pedestrian # 2",
40
"class_id": "00443067-b6a5-4eae-a743-c967d606bb01",
41
"attributes": []
42
},
43
{
44
"_id": "037614b-b5b9-420b-8e82-d601b1a7f276",
45
"color": "#fb0379",
46
"index": 3,
47
"value": "pedestrian # 3",
48
"class_id": "00443067-b6a5-4eae-a743-c967d606bb01",
49
"attributes": []
50
},
51
{
52
"_id": "7c3a8010-82cc-40cc-bac0-9a1511b5ea0c",
53
"color": "#fda7df",
54
"index": 0,
55
"value": "vegetation",
56
"class_id": "4443067-b6a5-4eae-a743-c967d606bb01",
57
"attributes": []
58
}
59
],
60
"url": "https://playment-data-uploads.s3.ap-south-1.amazonaws.com/clients/e81bddc9-e39c-4a7f-bef4-caee6f757009/projects/6f5ed111-1a46-4e06-8d72-c0dec50ac0b7/batch_export_result/0f0abfb5-4c5f-4838-a89e-92d5234b0b09/576d8391-0ce5-4cd4-969a-f3806e1cf2f4/source.png"
61
}
Copied!
To access the PNG mask (url in the result object), you will need to use the GET Attachment API.
The mask is a PNG file with four 8-bit channels. The first 3 channels are R, G & B respectively. These can be used to obtain a hex code for any pixel, which then maps to a class or instance based on thelegend object.