Skip to content

Commit

Permalink
Add group_id for shape annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
wkentaro committed Jan 26, 2020
1 parent b3c67fe commit 3936c55
Show file tree
Hide file tree
Showing 9 changed files with 434 additions and 382 deletions.
505 changes: 241 additions & 264 deletions examples/instance_segmentation/data_annotated/2011_000003.json

Large diffs are not rendered by default.

76 changes: 45 additions & 31 deletions examples/instance_segmentation/data_annotated/2011_000006.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"imagePath": "2011_000006.jpg",
"version": "3.22.0",
"flags": {},
"shapes": [
{
"line_color": null,
"label": "person",
"points": [
[
204.936170212766,
Expand Down Expand Up @@ -105,11 +106,12 @@
112.56382978723406
]
],
"fill_color": null,
"label": "person-1"
"group_id": null,
"shape_type": "polygon",
"flags": {}
},
{
"line_color": null,
"label": "person",
"points": [
[
271.936170212766,
Expand Down Expand Up @@ -188,11 +190,12 @@
148.56382978723406
]
],
"fill_color": null,
"label": "person-2"
"group_id": null,
"shape_type": "polygon",
"flags": {}
},
{
"line_color": null,
"label": "person",
"points": [
[
308.936170212766,
Expand Down Expand Up @@ -259,11 +262,12 @@
115.56382978723406
]
],
"fill_color": null,
"label": "person-3"
"group_id": null,
"shape_type": "polygon",
"flags": {}
},
{
"line_color": null,
"label": "chair",
"points": [
[
308.936170212766,
Expand Down Expand Up @@ -326,11 +330,12 @@
241.56382978723406
]
],
"fill_color": null,
"label": "chair"
"group_id": null,
"shape_type": "polygon",
"flags": {}
},
{
"line_color": null,
"label": "person",
"points": [
[
425.936170212766,
Expand All @@ -357,11 +362,12 @@
91.56382978723406
]
],
"fill_color": null,
"label": "person-4"
"group_id": null,
"shape_type": "polygon",
"flags": {}
},
{
"line_color": null,
"label": "__ignore__",
"points": [
[
457.936170212766,
Expand All @@ -380,11 +386,12 @@
87.56382978723406
]
],
"fill_color": null,
"label": "__ignore__"
"group_id": null,
"shape_type": "polygon",
"flags": {}
},
{
"line_color": null,
"label": "sofa",
"points": [
[
183.936170212766,
Expand Down Expand Up @@ -423,11 +430,12 @@
203.56382978723406
]
],
"fill_color": null,
"label": "sofa"
"group_id": 0,
"shape_type": "polygon",
"flags": {}
},
{
"line_color": null,
"label": "sofa",
"points": [
[
103.93617021276599,
Expand All @@ -442,11 +450,12 @@
311.56382978723406
]
],
"fill_color": null,
"label": "sofa"
"group_id": 0,
"shape_type": "polygon",
"flags": {}
},
{
"line_color": null,
"label": "sofa",
"points": [
[
348.936170212766,
Expand Down Expand Up @@ -485,11 +494,12 @@
164.56382978723406
]
],
"fill_color": null,
"label": "sofa"
"group_id": 0,
"shape_type": "polygon",
"flags": {}
},
{
"line_color": null,
"label": "sofa",
"points": [
[
246.936170212766,
Expand All @@ -508,11 +518,15 @@
256.56382978723406
]
],
"fill_color": null,
"label": "sofa"
"group_id": 0,
"shape_type": "polygon",
"flags": {}
}
],
"imagePath": "2011_000006.jpg",
"imageData": null,
"imageHeight": 375,
"imageWidth": 500,
"lineColor": [
0,
255,
Expand Down
85 changes: 47 additions & 38 deletions examples/semantic_segmentation/data_annotated/2011_000003.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"version": "3.22.0",
"flags": {},
"shapes": [
{
"label": "person",
"line_color": null,
"fill_color": null,
"points": [
[
250.8142292490119,
Expand Down Expand Up @@ -169,12 +169,13 @@
270.81422924901193,
121.33596837944665
]
]
],
"group_id": null,
"shape_type": "polygon",
"flags": {}
},
{
"label": "person",
"line_color": null,
"fill_color": null,
"points": [
[
482.81422924901193,
Expand Down Expand Up @@ -340,12 +341,37 @@
499.81422924901193,
90.33596837944665
]
]
],
"group_id": 0,
"shape_type": "polygon",
"flags": {}
},
{
"label": "person",
"points": [
[
370.81422924901193,
170.33596837944665
],
[
366.81422924901193,
173.33596837944665
],
[
365.81422924901193,
182.33596837944665
],
[
368.81422924901193,
185.33596837944665
]
],
"group_id": 0,
"shape_type": "polygon",
"flags": {}
},
{
"label": "bottle",
"line_color": null,
"fill_color": null,
"points": [
[
374.81422924901193,
Expand Down Expand Up @@ -383,35 +409,13 @@
382.81422924901193,
159.33596837944665
]
]
},
{
"label": "person",
"line_color": null,
"fill_color": null,
"points": [
[
370.81422924901193,
170.33596837944665
],
[
366.81422924901193,
173.33596837944665
],
[
365.81422924901193,
182.33596837944665
],
[
368.81422924901193,
185.33596837944665
]
]
],
"group_id": null,
"shape_type": "polygon",
"flags": {}
},
{
"label": "__ignore__",
"line_color": null,
"fill_color": null,
"points": [
[
338.81422924901193,
Expand Down Expand Up @@ -461,9 +465,16 @@
370.81422924901193,
270.3359683794467
]
]
],
"group_id": null,
"shape_type": "polygon",
"flags": {}
}
],
"imagePath": "2011_000003.jpg",
"imageData": null,
"imageHeight": 338,
"imageWidth": 500,
"lineColor": [
0,
255,
Expand All @@ -475,7 +486,5 @@
0,
0,
128
],
"imagePath": "2011_000003.jpg",
"imageData": null
]
}
Loading

0 comments on commit 3936c55

Please sign in to comment.