Skip to content

Instantly share code, notes, and snippets.

@deepakputhraya
Last active September 7, 2017 04:45
Show Gist options
  • Save deepakputhraya/192db8cc5043d45a37b579c9167aaf35 to your computer and use it in GitHub Desktop.
Save deepakputhraya/192db8cc5043d45a37b579c9167aaf35 to your computer and use it in GitHub Desktop.
JSON structures: Annotating Bounding Boxes. Polygons and Cuboids by Spare5 and scaleapi
{
"points": {
"p6": [0.232, 0.26986507],
"p7": [0.77066667, 0.26986507],
"p8": [0.77066667, 0.46626687],
"p9": [0.232, 0.46626687]
},
"cv_objects": {
"0EAF8033-9501-6BC2-9653-E40CE148D301": {
"closed": true,
"data_type": "polygon",
"directional": false,
"points": ["p6", "p9", "p8", "p7"],
"z_order": 0,
"display_type": "box",
"inbound": false,
"question_reference_id": "t_boundingbox_intro_01",
"tags": {}
}
}
}
{
"points" : {
"p1" : {
"x" : 0,
"y" : 1
},
"p2" : {
"x" : 0,
"y" : 2
},
"p3" : {
"x" : 1,
"y" : 2
},
"p4" : {
"x" : 1,
"y" : 1
},
"p5" : {
"x" : 1.5,
"y" : 2.5
},
"p6" : {
"x" : 1.5,
"y" : 1.5
}
},
"ploygons" : [{
"coordinates" : ["p1", "p2", "p3", "p4"],
"label" : "car",
"is_open" : false
}],
"cuboids" : [{
"edges" : {
"e1" : ["p1", "p2"],
"e2" : ["p2", "p3"],
"e3" : ["p3", "p4"],
"e4" : ["p4", "p1"],
"e5" : ["p3", "p5"],
"e6" : ["p4", "p6"],
"e7" : ["p5", "p6"]
},
"front" : {
"coordinates" : ["p1", "p2", "p3", "p4"]
},
"side" : {
"coordinates" : ["p3", "p4", "p5", "p6"]
},
"label" : "van"
}]
}
{
"annotations": [
{
"extra": {
"side": [
{
"description": "side-top",
"y2": 116.2,
"x2": 81.6,
"y1": 120.2,
"x1": 51.6,
"type": "edge"
},
{
"description": "side-back",
"y2": 149.4,
"x2": 81.6,
"y1": 116.2,
"x1": 81.6,
"type": "edge"
},
{
"description": "side-bottom",
"y2": 160.4,
"x2": 51.6,
"y1": 149.4,
"x1": 81.6,
"type": "edge"
},
{
"y2": 120.2,
"x2": 51.6,
"y1": 160.4,
"x1": 51.6,
"type": "edge"
}
],
"face": [
{
"description": "face-left",
"y2": 120.2,
"x2": 51.6,
"y1": 120.2,
"x1": 13,
"type": "edge"
},
{
"description": "face-top",
"y2": 160.4,
"x2": 51.6,
"y1": 120.2,
"x1": 51.6,
"type": "edge"
},
{
"description": "face-bottom",
"y2": 160.4,
"x2": 13,
"y1": 160.4,
"x1": 51.6,
"type": "edge"
},
{
"description": "face-right",
"y2": 120.2,
"x2": 13,
"y1": 160.4,
"x1": 13,
"type": "edge"
}
]
},
"edges": [
{
"description": "face-left",
"y2": 120.2,
"x2": 51.6,
"y1": 120.2,
"x1": 13,
"type": "edge"
},
{
"description": "face-top",
"y2": 160.4,
"x2": 51.6,
"y1": 120.2,
"x1": 51.6,
"type": "edge"
},
{
"description": "face-bottom",
"y2": 160.4,
"x2": 13,
"y1": 160.4,
"x1": 51.6,
"type": "edge"
},
{
"description": "face-right",
"y2": 120.2,
"x2": 13,
"y1": 160.4,
"x1": 13,
"type": "edge"
},
{
"description": "side-top",
"y2": 116.2,
"x2": 81.6,
"y1": 120.2,
"x1": 51.6,
"type": "edge"
},
{
"description": "side-back",
"y2": 149.4,
"x2": 81.6,
"y1": 116.2,
"x1": 81.6,
"type": "edge"
},
{
"description": "side-bottom",
"y2": 160.4,
"x2": 51.6,
"y1": 149.4,
"x1": 81.6,
"type": "edge"
}
],
"vertices": [
{
"description": "face-topleft",
"y": 120.2,
"x": 13,
"type": "vertex"
},
{
"description": "face-bottomleft",
"y": 160.4,
"x": 13,
"type": "vertex"
},
{
"description": "face-topright",
"y": 120.2,
"x": 51.6,
"type": "vertex"
},
{
"description": "face-bottomright",
"y": 160.4,
"x": 51.6,
"type": "vertex"
},
{
"description": "side-topcorner",
"y": 116.2,
"x": 81.6,
"type": "vertex"
},
{
"description": "side-bottomcorner",
"y": 149.4,
"x": 81.6,
"type": "vertex"
}
],
"label": "car"
},
{
"extra": {
"side": [
{
"description": "side-top",
"y2": 135.8,
"x2": 233.6,
"y1": 148.8,
"x1": 212.6,
"type": "edge"
},
{
"description": "side-back",
"y2": 177,
"x2": 233.6,
"y1": 135.8,
"x1": 233.6,
"type": "edge"
},
{
"description": "side-bottom",
"y2": 201,
"x2": 212.6,
"y1": 177,
"x1": 233.6,
"type": "edge"
},
{
"y2": 148.8,
"x2": 212.6,
"y1": 201,
"x1": 212.6,
"type": "edge"
}
],
"face": [
{
"description": "face-left",
"y2": 148.8,
"x2": 212.6,
"y1": 148.8,
"x1": 153.2,
"type": "edge"
},
{
"description": "face-top",
"y2": 201,
"x2": 212.6,
"y1": 148.8,
"x1": 212.6,
"type": "edge"
},
{
"description": "face-bottom",
"y2": 201,
"x2": 153.2,
"y1": 201,
"x1": 212.6,
"type": "edge"
},
{
"description": "face-right",
"y2": 148.8,
"x2": 153.2,
"y1": 201,
"x1": 153.2,
"type": "edge"
}
]
},
"edges": [
{
"description": "face-left",
"y2": 148.8,
"x2": 212.6,
"y1": 148.8,
"x1": 153.2,
"type": "edge"
},
{
"description": "face-top",
"y2": 201,
"x2": 212.6,
"y1": 148.8,
"x1": 212.6,
"type": "edge"
},
{
"description": "face-bottom",
"y2": 201,
"x2": 153.2,
"y1": 201,
"x1": 212.6,
"type": "edge"
},
{
"description": "face-right",
"y2": 148.8,
"x2": 153.2,
"y1": 201,
"x1": 153.2,
"type": "edge"
},
{
"description": "side-top",
"y2": 135.8,
"x2": 233.6,
"y1": 148.8,
"x1": 212.6,
"type": "edge"
},
{
"description": "side-back",
"y2": 177,
"x2": 233.6,
"y1": 135.8,
"x1": 233.6,
"type": "edge"
},
{
"description": "side-bottom",
"y2": 201,
"x2": 212.6,
"y1": 177,
"x1": 233.6,
"type": "edge"
}
],
"vertices": [
{
"description": "face-topleft",
"y": 148.8,
"x": 153.2,
"type": "vertex"
},
{
"description": "face-bottomleft",
"y": 201,
"x": 153.2,
"type": "vertex"
},
{
"description": "face-topright",
"y": 148.8,
"x": 212.6,
"type": "vertex"
},
{
"description": "face-bottomright",
"y": 201,
"x": 212.6,
"type": "vertex"
},
{
"description": "side-topcorner",
"y": 135.8,
"x": 233.6,
"type": "vertex"
},
{
"description": "side-bottomcorner",
"y": 177,
"x": 233.6,
"type": "vertex"
}
],
"label": "car"
},
{
"extra": {
"side": [
{
"description": "side-top",
"y2": 133.6,
"x2": 415.6,
"y1": 149.6,
"x1": 436.6,
"type": "edge"
},
{
"description": "side-back",
"y2": 180,
"x2": 415.6,
"y1": 133.6,
"x1": 415.6,
"type": "edge"
},
{
"description": "side-bottom",
"y2": 201,
"x2": 436.6,
"y1": 180,
"x1": 415.6,
"type": "edge"
},
{
"y2": 149.6,
"x2": 436.6,
"y1": 201,
"x1": 436.6,
"type": "edge"
}
],
"face": [
{
"description": "face-left",
"y2": 149.6,
"x2": 498.4,
"y1": 149.6,
"x1": 436.6,
"type": "edge"
},
{
"description": "face-top",
"y2": 201,
"x2": 498.4,
"y1": 149.6,
"x1": 498.4,
"type": "edge"
},
{
"description": "face-bottom",
"y2": 201,
"x2": 436.6,
"y1": 201,
"x1": 498.4,
"type": "edge"
},
{
"description": "face-right",
"y2": 149.6,
"x2": 436.6,
"y1": 201,
"x1": 436.6,
"type": "edge"
}
]
},
"edges": [
{
"description": "face-left",
"y2": 149.6,
"x2": 498.4,
"y1": 149.6,
"x1": 436.6,
"type": "edge"
},
{
"description": "face-top",
"y2": 201,
"x2": 498.4,
"y1": 149.6,
"x1": 498.4,
"type": "edge"
},
{
"description": "face-bottom",
"y2": 201,
"x2": 436.6,
"y1": 201,
"x1": 498.4,
"type": "edge"
},
{
"description": "face-right",
"y2": 149.6,
"x2": 436.6,
"y1": 201,
"x1": 436.6,
"type": "edge"
},
{
"description": "side-top",
"y2": 133.6,
"x2": 415.6,
"y1": 149.6,
"x1": 436.6,
"type": "edge"
},
{
"description": "side-back",
"y2": 180,
"x2": 415.6,
"y1": 133.6,
"x1": 415.6,
"type": "edge"
},
{
"description": "side-bottom",
"y2": 201,
"x2": 436.6,
"y1": 180,
"x1": 415.6,
"type": "edge"
}
],
"vertices": [
{
"description": "face-topleft",
"y": 149.6,
"x": 436.6,
"type": "vertex"
},
{
"description": "face-bottomleft",
"y": 201,
"x": 436.6,
"type": "vertex"
},
{
"description": "face-topright",
"y": 149.6,
"x": 498.4,
"type": "vertex"
},
{
"description": "face-bottomright",
"y": 201,
"x": 498.4,
"type": "vertex"
},
{
"description": "side-topcorner",
"y": 133.6,
"x": 415.6,
"type": "vertex"
},
{
"description": "side-bottomcorner",
"y": 180,
"x": 415.6,
"type": "vertex"
}
],
"label": "car"
}
]
}
{
"points": {
"p2331": [0, 0],
"p2332": [1, 0],
"p2333": [1, 1],
"p2334": [0, 1],
"p2335": [0.18536603, 0.10716735],
"p2336": [0.21098573, 0.09734368],
"p2337": [0.24012185, 0.09287837],
"p2338": [0.27076501, 0.09109225],
"p2339": [0.30341757, 0.09109225],
"p2340": [0.33255369, 0.09377143],
"p2341": [0.35817339, 0.09555756],
"p2342": [0.38479778, 0.10091592],
"p2343": [0.40087288, 0.10895348],
"p2344": [0.40790574, 0.12592164],
"p2345": [0.40991512, 0.15182042],
"p2346": [0.41192451, 0.57245227],
"p2347": [0.27227206, 0.58674126],
"p2348": [0.26071807, 0.59388575],
"p2349": [0.25569461, 0.60996085],
"p2350": [0.25468991, 0.64479024],
"p2351": [0.25519226, 0.9707576],
"p2352": [0.23057726, 0.96718536],
"p2353": [0.20696695, 0.95914781],
"p2354": [0.19491062, 0.95200332],
"p2355": [0.18486368, 0.94396576],
"p2356": [0.17732848, 0.93056984],
"p2357": [0.17582144, 0.88502372],
"p2358": [0.17531909, 0.52065472],
"p2359": [0.1743144, 0.1937943],
"p2360": [0.1743144, 0.14824817],
"p2361": [0.17632378, 0.12949388],
"p2362": [0.17933787, 0.11699103],
"p2363": [0.25458333, 0.98666667],
"p2364": [0.25916667, 1],
"p2365": [0.73, 1],
"p2366": [0.73083333, 0.63111111],
"p2367": [0.73083333, 0.6237037],
"p2368": [0.73458333, 0.61407407],
"p2369": [0.49291667, 0.59333333],
"p2370": [0.49083333, 0.58],
"p2371": [0.49875, 0.56518519],
"p2372": [0.49236445138223667, 0.5897991430392627],
"p2373": [0.96041667, 0.5962963],
"p2374": [1, 0.64740741],
"p2375": [0.90916667, 0.62296296],
"p2376": [0.91833333, 0.62296296],
"p2377": [0.69833333, 0.20814815],
"p2378": [0.78041667, 0.15111111],
"p2379": [0.98708333, 0.5637037],
"p2380": [0.9197481760397557, 0.6220664242617597],
"p2381": [0.4917873028959753, 0.578214788894949]
},
"cv_objects": {
"D38495A5-5380-52AF-673A-BB4EEDCE26A7": {
"data_type": "polygon",
"directional": false,
"display_type": "segmentation",
"points": ["p2335", "p2336", "p2337", "p2338", "p2339", "p2340", "p2341", "p2342", "p2343", "p2344", "p2345", "p2346", "p2347", "p2348", "p2349", "p2350", "p2351", "p2352", "p2353", "p2354", "p2355", "p2356", "p2357", "p2358", "p2359", "p2360", "p2361", "p2362"],
"closed": true,
"z_order": 0,
"inbound": true,
"author_id": 47799906,
"tags": {
"blue_block": "Blue block"
}
},
"A52E818D-4830-FDA1-2292-61D2DD109CB0": {
"data_type": "polygon",
"directional": false,
"display_type": "segmentation",
"points": ["p2372", "p2370", "p2381", "p2371", "p2346", "p2347"],
"closed": true,
"z_order": 0,
"inbound": false,
"question_reference_id": "q5",
"tags": {
"yellow_block": "Yellow block"
}
},
"6B7DCEF2-3827-4CA2-7204-896798BD349F": {
"data_type": "polygon",
"directional": false,
"display_type": "segmentation",
"points": ["p2367", "p2366", "p2365"],
"closed": true,
"z_order": 0,
"inbound": false,
"question_reference_id": "q5",
"tags": {
"yellow_block": "Yellow block"
}
},
"D07840C2-C8A2-F1BE-74B6-646472825EF5": {
"data_type": "polygon",
"directional": false,
"display_type": "segmentation",
"points": ["p2367", "p2368", "p2369", "p2372", "p2347", "p2348", "p2349", "p2350", "p2351", "p2363", "p2364", "p2365"],
"closed": true,
"z_order": 0,
"inbound": false,
"question_reference_id": "q5",
"tags": {
"yellow_block": "Yellow block"
}
},
"83A93CEC-3E27-3267-CEEF-C990C95C82B7": {
"data_type": "polygon",
"directional": false,
"display_type": "segmentation",
"points": ["p2380", "p2373", "p2374", "p2333", "p2365", "p2366", "p2367", "p2368", "p2375", "p2376"],
"closed": true,
"z_order": 0,
"inbound": false,
"question_reference_id": "q5",
"tags": {
"red_block": "Red block"
}
},
"99F42D7F-4B82-43B5-1F11-892083652F0C": {
"data_type": "polygon",
"directional": false,
"display_type": "segmentation",
"points": ["p2377", "p2378", "p2379", "p2380", "p2376", "p2375", "p2368", "p2369", "p2372", "p2370", "p2381"],
"closed": true,
"z_order": 0,
"inbound": false,
"question_reference_id": "q5",
"tags": {
"empty_reserved": "Unlabeled"
}
},
"B4812C18-40DA-E440-728D-1AE7AF0D4AB2": {
"data_type": "polygon",
"directional": false,
"display_type": "segmentation",
"points": ["p2377", "p2378", "p2379", "p2380", "p2373", "p2374", "p2332", "p2331", "p2334", "p2364", "p2363", "p2351", "p2352", "p2353", "p2354", "p2355", "p2356", "p2357", "p2358", "p2359", "p2360", "p2361", "p2362", "p2335", "p2336", "p2337", "p2338", "p2339", "p2340", "p2341", "p2342", "p2343", "p2344", "p2345", "p2346", "p2371", "p2381"],
"closed": true,
"z_order": 0,
"inbound": false,
"question_reference_id": "q5",
"tags": {
"empty_reserved": "Unlabeled"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment