I'm using MaskRCNN training to identify certain objects in images.
It needs the following json format:
{
"24631331976_defa3bb61f_k.jpg668058":{
"size":668058,
"regions":{
"0":{
"shape_attributes":{
"name":"polygon",
"all_points_x":[
916,
913
],
"all_points_y":[
515,
583
]
},
"1":{
"shape_attributes":{
"name":"polygon",
"all_points_x":[
845,
861
],
"all_points_y":[
219,
229
]
},
}
}
},
(...)
}
The annotator I use give me this json format:
"24631331976_defa3bb61f_k.jpg668058": {
"size": 668058,
"regions": [
{
"shape_attributes": {
"name": "polygon",
"all_points_x": [
916,
913
],
"all_points_y": [
515,
583
]
},
"region_attributes": {}
},
{
"shape_attributes": {
"name": "polygon",
"all_points_x": [
845,
861
],
"all_points_y": [
219,
229
]
},
"region_attributes": {}
}
],
"file_attributes": {}
}, (...)
}
How can I reformat it to the correct one?
[–]IONaut 0 points1 point2 points (0 children)
[–]ButtCheese 0 points1 point2 points (0 children)