I recently came across a dataset which contains polygon points for each category instead of like the four coordinates for the bounding box,How Do i go on to solve that problem using what I have learned in lesson 8 or has Jeremy Taught how to deal with this kind of things in a later lesson of the course.
Example of annotations in Json File
“objects”: [
{
“date”: “22-Mar-2018 11:59:04”,
“deleted”: 0,
“draw”: true,
“id”: 0,
“label”: “sky”,
“polygon”: [
[
0.0,
100.76923076923076
],
[
544.6153846153846,
329.2307692307692
],
[
848.4615384615385,
320.7692307692308
],
[
1076.1538461538462,
285.38461538461536
],
[
1186.923076923077,
244.6153846153846
],
[
1279.0,
92.3076923076923
],
[
1279.0,
0.0
],
[
0.0,
0.0
]
],
},
{
"date": "22-Mar-2018 11:58:35",
"deleted": 0,
"draw": true,
"id": 1,
"label": "road",
"polygon": [
[
449.2307692307692,
717.6923076923076
],
[
585.3846153846154,
324.6153846153846
],
[
640.7692307692307,
326.9230769230769
],
[
860.7692307692307,
334.6153846153846
],
[
1279.0,
401.53846153846155
],
[
1279.0,
719.0
]
],
},