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

{
"data": {
"annotations": {
"rectangles": [],
"polygons": [],
"lines": [],
"cuboids": [],
"landmarks": []
},
"image_url":"https://s3.aws.com/600x400/000/fff.jpg&text=Dummy+Image+1"
}
}
The rectangles list contains objects, where each object is an annotation. You can check the data structures for various annotation types below:
Rectangles
Polygons
Lines
Cuboids
Landmarks
"rectangles": [
{
"_id": "0e6d895e-2484-439a-b62b-d8a0afb3d190",
"label": "Chair".
"attributes": {
"Truncation": {
"value": "0% Truncated"
},
"Occlusion": {
"value": "0% Occluded"
}
}
"coordinates": [
{"x": 0.00398, "y": 0.00558},
{"x": 0.05404, "y": 0.00558},
{"x": 0.05404, "y": 0.09096},
{"x": 0.00398, "y": 0.09096}
]
}
]
"polygons": [
{
"_id": "8f8897ad-e07b-4e55-9dbe-61f6b9df85c5",
"label": "Pedestrian Crossing",
"attributes": {
"Type": {
"value": "Dashed"
},
"Occlusion": {
"value": "0% - 25% Occluded"
},
"Truncation": {
"value": "0% Truncated"
}
}
"points": {
"p1": {"x": 0.286774, "y": 0.892502},
"p2": {"x": 0.385849, "y": 0.576888},
"p3": {"x": 0.426721, "y": 0.469081},
"p4": {"x": 0.288623, "y": 0.253878},
"p5": {"x": 0.148623, "y": 0.353878}
},
"edges": {
"e1": ["p1", "p2"],
"e2": ["p2", "p3"],
"e3": ["p3", "p4"],
"e4": ["p4", "p4"],
"e5": ["p5", "p1"]
}
}
]
"lines": [
{
"_id": "8f8897ad-e07b-4e55-9dbe-61f6b9df85c5",
"label": "Single SOlid Line",
"attributes": {
"Color": {
"value": "Yellow"
},
}
"points": {
"p1": {"x": 0.286774, "y": 0.892502},
"p2": {"x": 0.285849, "y": 0.876888},
"p3": {"x": 0.286774, "y": 0.869081},
"p4": {"x": 0.288623, "y": 0.853878}
}
}
]
"cuboids": [
{
"_id": "8f8897ad-e07b-4e55-9dbe-61f6b9df85c5",
"label": "Car",
"attributes" : {
"faces_visible": {
"value": ["right","back"]
},
"Type": {
"value": "Sedan"
}
},
"points": {
"p1": {"x": 0.17,"y": 0.58},
"p2": {"x": 0.26,"y": 0.58},
"p3": {"x": 0.26,"y": 0.49},
"p4": {"x": 0.17,"y": 0.49},
"p5": {"x": 0.24,"y": 0.51},
"p6": {"x": 0.35,"y": 0.52},
"p7": {"x": 0.35,"y": 0.36},
"p8": {"x": 0.25,"y": 0.37}
},
"front": {
"coordinates": ["p1","p2","p3","p4"]
},
"side": {
"coordinates": ["p2","p3","p5","p6"]
},
"back": {
"coordinates": ["p7","p8","p5","p6"]
}
}
]
"landmarks": [
{
"_id": "e7e3353f-2ffe-432a-a14f-9cb9a6f4b735",
"label": "Eye",
"attributes": {
"Type": {
"value": "Open"
},
}
"points": {
"p1": { "x": 0.17, "y": 0.58, "label": 1 },
"p2": { "x": 0.26, "y": 0.63, "label": 2 },
"p3": { "x": 0.27, "y": 0.63, "label": 3 },
"p4": { "x": 0.29, "y": 0.59, "label": 4 },
"p5": { "x": 0.25, "y": 0.46, "label": 5 },
"p6": { "x": 0.22, "y": 0.42, "label": 6 }
}
}
]
Copy link
On this page
get
JOB RESULT
get
ATTACHMENT
Result Object