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

Instance Aware Segmentation
1
{
2
"legend": [
3
{
4
"id": "70d3d997-ce98-4e4d-97b4-46d97037c312",
5
"text": "crosswalk",
6
"color": "rgb(244, 35, 242)",
7
"label_key": 0,
8
"value": "crosswalk"
9
},
10
{
11
"id": "4a6aca59-944a-475b-8043-66aeb63ae7cf",
12
"text": "MINIVAN # 1",
13
"color": "rgb(70, 90, 110)",
14
"label_key": 1,
15
"value": "MINIVAN #1"
16
},
17
{
18
"id": "286e0022-9229-4946-99b3-09f8ae5c79d0",
19
"text": "MINIVAN # 2",
20
"color": "rgb(143, 0, 214)",
21
"label_key": 2,
22
"value": "MINIVAN # 2"
23
}
24
],
25
"url": "https://playment-uploads.s3.ap-south-1.amazonaws.com/submissions/default/5a375fc2-fb4f-4d4b-808f-241ed881b74f_data.pcd"
26
}
Copied!
To access the PCD mask (url in the result object), you will need to use the GET Attachment API.
Sample PCD Mask
1
# .PCD v0.7 - Point Cloud Data file format
2
VERSION 0.7
3
FIELDS x y z label_key
4
SIZE 4 4 4 4
5
TYPE F F F F
6
COUNT 1 1 1 1
7
WIDTH 47286
8
HEIGHT 1
9
VIEWPOINT 0 0 0 1 0 0 0
10
POINTS 47286
11
DATA ascii
12
5075.773 3756.887 107.923 0
13
5076.011 3756.876 107.865 0
14
5076.116 3756.826 107.844 1
15
5076.860 3756.975 107.648 1
16
5077.045 3756.954 107.605 2
17
5077.237 3756.937 107.559 3
18
5077.441 3756.924 107.511 4
19
5077.599 3756.902 107.474 5
20
5077.780 3756.885 107.432 6
21
5077.955 3756.862 107.391 7
Copied!
For each point, there is a label with an int value which can be used to look up the label value by comparing with the label_key in the legend.
Last modified 2mo ago