|
| 1 | +{ |
| 2 | + "info": {}, |
| 3 | + "categories": { |
| 4 | + "label": { |
| 5 | + "labels": [ |
| 6 | + { "name": "cat0", "parent": "", "attributes": ["x", "y"] }, |
| 7 | + { "name": "cat1", "parent": "", "attributes": ["x", "y"] }, |
| 8 | + { "name": "cat2", "parent": "", "attributes": ["x", "y"] }, |
| 9 | + { "name": "cat3", "parent": "", "attributes": ["x", "y"] }, |
| 10 | + { "name": "cat4", "parent": "", "attributes": ["x", "y"] } |
| 11 | + ], |
| 12 | + "attributes": ["a", "b", "score"] |
| 13 | + }, |
| 14 | + "mask": { |
| 15 | + "colormap": [ |
| 16 | + { "label_id": 0, "r": 0, "g": 0, "b": 0 }, |
| 17 | + { "label_id": 1, "r": 128, "g": 0, "b": 0 }, |
| 18 | + { "label_id": 2, "r": 0, "g": 128, "b": 0 }, |
| 19 | + { "label_id": 3, "r": 128, "g": 128, "b": 0 }, |
| 20 | + { "label_id": 4, "r": 0, "g": 0, "b": 128 } |
| 21 | + ] |
| 22 | + }, |
| 23 | + "points": { |
| 24 | + "items": [ |
| 25 | + { "label_id": 0, "labels": ["cat1", "cat2"], "joints": [[0, 1]] }, |
| 26 | + { "label_id": 1, "labels": ["cat1", "cat2"], "joints": [[0, 1]] }, |
| 27 | + { "label_id": 2, "labels": ["cat1", "cat2"], "joints": [[0, 1]] }, |
| 28 | + { "label_id": 3, "labels": ["cat1", "cat2"], "joints": [[0, 1]] }, |
| 29 | + { "label_id": 4, "labels": ["cat1", "cat2"], "joints": [[0, 1]] } |
| 30 | + ] |
| 31 | + } |
| 32 | + }, |
| 33 | + "items": [ |
| 34 | + { |
| 35 | + "id": "100", |
| 36 | + "annotations": [ |
| 37 | + { |
| 38 | + "id": 1, |
| 39 | + "type": "caption", |
| 40 | + "attributes": {}, |
| 41 | + "group": 0, |
| 42 | + "caption": "hello" |
| 43 | + }, |
| 44 | + { |
| 45 | + "id": 2, |
| 46 | + "type": "caption", |
| 47 | + "attributes": {}, |
| 48 | + "group": 5, |
| 49 | + "caption": "world" |
| 50 | + }, |
| 51 | + { |
| 52 | + "id": 3, |
| 53 | + "type": "label", |
| 54 | + "attributes": { "x": 1, "y": "2" }, |
| 55 | + "group": 0, |
| 56 | + "label_id": 2 |
| 57 | + }, |
| 58 | + { |
| 59 | + "id": 4, |
| 60 | + "type": "bbox", |
| 61 | + "attributes": { "score": 1.0 }, |
| 62 | + "group": 0, |
| 63 | + "label_id": 4, |
| 64 | + "z_order": 1, |
| 65 | + "bbox": [1.0, 2.0, 3.0, 4.0] |
| 66 | + }, |
| 67 | + { |
| 68 | + "id": 5, |
| 69 | + "type": "bbox", |
| 70 | + "attributes": { "a": 1.5, "b": "text" }, |
| 71 | + "group": 5, |
| 72 | + "label_id": null, |
| 73 | + "z_order": 0, |
| 74 | + "bbox": [5.0, 6.0, 7.0, 8.0] |
| 75 | + }, |
| 76 | + { |
| 77 | + "id": 5, |
| 78 | + "type": "points", |
| 79 | + "attributes": { "x": 1, "y": "2" }, |
| 80 | + "group": 0, |
| 81 | + "label_id": 0, |
| 82 | + "points": [1.0, 2.0, 2.0, 0.0, 1.0, 1.0], |
| 83 | + "z_order": 4, |
| 84 | + "visibility": [2, 2, 2] |
| 85 | + }, |
| 86 | + { |
| 87 | + "id": 5, |
| 88 | + "type": "mask", |
| 89 | + "attributes": { "x": 1, "y": "2" }, |
| 90 | + "group": 0, |
| 91 | + "label_id": 3, |
| 92 | + "rle": { "counts": "06", "size": [2, 3] }, |
| 93 | + "z_order": 2 |
| 94 | + } |
| 95 | + ], |
| 96 | + "image": { "path": "100.jpg", "size": [10, 6] } |
| 97 | + }, |
| 98 | + { |
| 99 | + "id": "21", |
| 100 | + "annotations": [ |
| 101 | + { |
| 102 | + "id": 0, |
| 103 | + "type": "caption", |
| 104 | + "attributes": {}, |
| 105 | + "group": 0, |
| 106 | + "caption": "test" |
| 107 | + }, |
| 108 | + { |
| 109 | + "id": 0, |
| 110 | + "type": "label", |
| 111 | + "attributes": {}, |
| 112 | + "group": 0, |
| 113 | + "label_id": 2 |
| 114 | + }, |
| 115 | + { |
| 116 | + "id": 42, |
| 117 | + "type": "bbox", |
| 118 | + "attributes": {}, |
| 119 | + "group": 42, |
| 120 | + "label_id": 5, |
| 121 | + "z_order": 0, |
| 122 | + "bbox": [1.0, 2.0, 3.0, 4.0] |
| 123 | + } |
| 124 | + ] |
| 125 | + } |
| 126 | + ] |
| 127 | +} |
0 commit comments