Last active
January 29, 2018 05:33
-
-
Save deepakputhraya/c3f5970eeeeaa2fbcab1cf8e86227960 to your computer and use it in GitHub Desktop.
Playment TaskUI V2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version" : "v2", | |
"answers" : { | |
"polygons" : { | |
"type" : "polygons", | |
"data" : [{ | |
"_id" : "id-poly-01", | |
"label" : "tree", | |
"points" : { | |
"p1" : {"x" : 0, "y" : 1}, | |
"p2" : {"x" : 1, "y" : 0}, | |
"p3" : {"x" : 0.5, "y" : 0.5} | |
}, | |
"edges" : { | |
"e1" : ["p1", "p2"], | |
"e2" : ["p2", "p3"], | |
"e3" : ["p3", "p1"] | |
} | |
}] | |
}, | |
"rectangles" : { | |
"type" : "rectangles", | |
"data" : [{ | |
"_id" : "id-01", | |
"label" : "car", | |
"coordinates" : [{"x" : 1, "y" : 0}, {"x" : 0, "y" : 1}] | |
}] | |
}, | |
"text-01" : { | |
"type" : "text", | |
"data" : { | |
"value" : "cricket" | |
} | |
}, | |
"choice-01": { | |
"type" : "choice", | |
"data" : { | |
"value" : "pasta" | |
} | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"type": "object", | |
"properties": { | |
"image": { | |
"type": "object", | |
"properties": { | |
"url": { | |
"type": "string", | |
"custom_type": "image" | |
}, | |
"quality": { | |
"type": "string", | |
"allowed_values": [ | |
"THUMBNAIL", | |
"SMALL", | |
"NORMAL", | |
"LARGE", | |
"XLARGE", | |
"ORIGINAL", | |
"OFF" | |
] | |
} | |
} | |
}, | |
"toolbox": { | |
"type": "object", | |
"properties": { | |
"shapes": { | |
"type": "object", | |
"properties": { | |
"rectangle": { | |
"type": "object", | |
"properties": { | |
"answer_label": { | |
"type": "string" | |
}, | |
"state": { | |
"_default": "non_editable", | |
"type": "string", | |
"allowed_values": [ | |
"editable", | |
"non_editable" | |
] | |
}, | |
"data": { | |
"_default": [], | |
"type": "array", | |
"items": { | |
"custom_type": "rectangle" | |
} | |
}, | |
"label_options": { | |
"type": "object", | |
"properties": { | |
"state": { | |
"_default": "SHOW", | |
"type": "string", | |
"allowed_values": [ | |
"HIDE", | |
"SHOW" | |
] | |
}, | |
"data": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"properties": { | |
"value": { | |
"type": "string" | |
}, | |
"color": { | |
"type": "string" | |
}, | |
"text": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"polygon": { | |
"type": "object", | |
"properties": { | |
"answer_label": { | |
"type": "string" | |
}, | |
"state": { | |
"_default": "non_editable", | |
"type": "string", | |
"allowed_values": [ | |
"editable", | |
"non_editable" | |
] | |
}, | |
"data": { | |
"_default": [], | |
"type": "array", | |
"items": { | |
"custom_type": "polygon" | |
} | |
}, | |
"label_options": { | |
"type": "object", | |
"properties": { | |
"state": { | |
"_default": "SHOW", | |
"type": "string", | |
"allowed_values": [ | |
"HIDE", | |
"SHOW" | |
] | |
}, | |
"data": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"properties": { | |
"value": { | |
"type": "string" | |
}, | |
"color": { | |
"type": "string" | |
}, | |
"text": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"cuboid": { | |
"type": "object", | |
"properties": { | |
"answer_label": { | |
"type": "string" | |
}, | |
"state": { | |
"_default": "non_editable", | |
"type": "string", | |
"allowed_values": [ | |
"editable", | |
"non_editable" | |
] | |
}, | |
"data": { | |
"_default": [], | |
"type": "array", | |
"items": { | |
"custom_type": "cuboid" | |
} | |
}, | |
"label_options": { | |
"type": "object", | |
"properties": { | |
"state": { | |
"_default": "SHOW", | |
"type": "string", | |
"allowed_values": [ | |
"HIDE", | |
"SHOW" | |
] | |
}, | |
"data": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"properties": { | |
"value": { | |
"type": "string" | |
}, | |
"color": { | |
"type": "string" | |
}, | |
"text": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"line": { | |
"type": "object", | |
"properties": { | |
"answer_label": { | |
"type": "string" | |
}, | |
"state": { | |
"_default": "non_editable", | |
"type": "string", | |
"allowed_values": [ | |
"editable", | |
"non_editable" | |
] | |
}, | |
"data": { | |
"_default": [], | |
"type": "array", | |
"items": { | |
"custom_type": "line" | |
} | |
}, | |
"label_options": { | |
"type": "object", | |
"properties": { | |
"state": { | |
"_default": "SHOW", | |
"type": "string", | |
"allowed_values": [ | |
"HIDE", | |
"SHOW" | |
] | |
}, | |
"data": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"properties": { | |
"value": { | |
"type": "string" | |
}, | |
"color": { | |
"type": "string" | |
}, | |
"text": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"landmark": { | |
"type": "object", | |
"properties": { | |
"answer_label": { | |
"type": "string" | |
}, | |
"state": { | |
"_default": "non_editable", | |
"type": "string", | |
"allowed_values": [ | |
"editable", | |
"non_editable" | |
] | |
}, | |
"data": { | |
"_default": [], | |
"type": "array", | |
"items": { | |
"custom_type": "landmark" | |
} | |
}, | |
"label_options": { | |
"type": "object", | |
"properties": { | |
"state": { | |
"_default": "SHOW", | |
"type": "string", | |
"allowed_values": [ | |
"HIDE", | |
"SHOW" | |
] | |
}, | |
"data": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"properties": { | |
"value": { | |
"type": "string" | |
}, | |
"color": { | |
"type": "string" | |
}, | |
"text": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"effects": { | |
"type": "object", | |
"properties": { | |
"brightness": { | |
"type": "object", | |
"properties": { | |
"state": { | |
"type": "string", | |
"allowed_values": [ | |
"ENABLE", | |
"DISABLE" | |
] | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"components": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"required": [ | |
"data", | |
"label" | |
], | |
"properties": { | |
"label": { | |
"type": "string", | |
"allowed_values": [ | |
"input-grid", | |
"input-radio" | |
] | |
}, | |
"data": {}, | |
"answer_label": { | |
"type": "string" | |
}, | |
"answer": { | |
"type": "object", | |
"properties": { | |
"value": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"preset": "image-annotation-preset", | |
"data": { | |
"image": { | |
"url": "{image_url}", | |
"quality": "XLARGE" | |
}, | |
"toolbox": { | |
"shapes": { | |
"rectangle": { | |
"answer_label": "rectangle", | |
"state": "editable", | |
"data": [], | |
"label_options": { | |
"state": "SHOW", | |
"data": [ | |
{ | |
"text": "CAR", | |
"color": "red", | |
"value": "car" | |
}, | |
{ | |
"text": "PERSON", | |
"color": "white", | |
"value": "person" | |
} | |
] | |
} | |
}, | |
"polygon": { | |
"answer_label": "polygon", | |
"state": "editable", | |
"data": [], | |
"label_options": { | |
"state": "SHOW", | |
"data": [ | |
{ | |
"text": "TREE", | |
"color": "purple", | |
"value": "tree" | |
}, | |
{ | |
"text": "Signal", | |
"color": "white", | |
"value": "signal" | |
} | |
] | |
} | |
}, | |
"cuboid": { | |
"answer_label": "cuboid", | |
"state": "off", | |
"data": [], | |
"label_options": { | |
"state": "HIDE", | |
"data": [] | |
} | |
}, | |
"line": { | |
"answer_label": "line", | |
"state": "non_editable", | |
"data": [], | |
"label_options": { | |
"state": "SHOW", | |
"data": [] | |
} | |
}, | |
"landmark": { | |
"answer_label": "landmark", | |
"state": "editable", | |
"data": [], | |
"label_options": { | |
"state": "HIDE", | |
"data": [] | |
} | |
} | |
}, | |
"effects": { | |
"brightness": { | |
"state": "ENABLE" | |
} | |
} | |
}, | |
"components": [ | |
{ | |
"label": "input-grid", | |
"answer_label" : "car_model", | |
"data": [ | |
{ | |
"text": "BLACK SEDAN", | |
"image": "http://sedan.com/black-sedan.jpg", | |
"value": "black_sedan" | |
}, | |
{ | |
"text": "WHITE SEDAN", | |
"image": "http://sedan.com/white-sedan.jpg", | |
"value": "white_sedan" | |
} | |
] | |
}, | |
{ | |
"label": "radio", | |
"answer_label" : "yes_no", | |
"data": [ | |
{ | |
"text": "YES", | |
"value": "yes" | |
}, { | |
"text": "NO", | |
"value": "no" | |
} | |
], | |
"answer" : { | |
"value" : "no", | |
"state": "edit" | |
} | |
} | |
] | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"polygons": { | |
"success" : true, | |
"data": [ | |
{ | |
"_id": "id-poly-01", | |
"label": "tree", | |
"points": { | |
"p1": { | |
"x": 0, | |
"y": 1 | |
}, | |
"p2": { | |
"x": 1, | |
"y": 0 | |
}, | |
"p3": { | |
"x": 0.5, | |
"y": 0.5 | |
} | |
}, | |
"edges": { | |
"e1": [ | |
"p1", | |
"p2" | |
], | |
"e2": [ | |
"p2", | |
"p3" | |
], | |
"e3": [ | |
"p3", | |
"p1" | |
] | |
} | |
} | |
] | |
}, | |
"rectangles": { | |
"success" : true, | |
"data": [ | |
{ | |
"_id": "id-01", | |
"label": "car", | |
"coordinates": [ | |
{ | |
"x": 1, | |
"y": 0 | |
}, | |
{ | |
"x": 0, | |
"y": 1 | |
} | |
] | |
} | |
] | |
}, | |
"text-01": { | |
"success" : false, | |
"data": { | |
"value": "cricket" | |
} | |
}, | |
"choice-01": { | |
"success" : true, | |
"data": { | |
"value": "pasta" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment