Всем привет.
Столкнулся с задачей .
Есть json вида :
"frames" : [ {
"frameNumber" : 0,
"entities" : [ {
"shapeType" : "bounding-box",
"name" : "Seat Belt 1",
"entityTypeName" : "Seat Belt",
"classifications" : { },
"id" : "549d6e7d-8342-4b7c-b30b-51c822bb4e45",
"keyframeType" : [ "classification", "position" ],
"relationships" : [ ],
"coordinates" : [ {
"x" : 909,
"y" : 303
}, {
"x" : 909,
"y" : 153
}, {
"x" : 1040,
"y" : 153
}, {
"x" : 1040,
"y" : 303
} ]
}, {
"shapeType" : "bounding-box",
"name" : "Face 1",
"entityTypeName" : "Face",
"classifications" : { },
"id" : "5fb52dc3-d0b3-4aac-a40f-007101fc2c9d",
"keyframeType" : [ "classification", "position" ],
"relationships" : [ ],
"coordinates" : [ {
"x" : 278,
"y" : 369
}, {
"x" : 278,
"y" : 146
}, {
"x" : 497,
"y" : 146
}, {
"x" : 497,
"y" : 369
} ]
}, {
"shapeType" : "bounding-box",
"name" : "Face 1",
"entityTypeName" : "Face",
"classifications" : {
"safety" : "fastened-not-safe",
"buckle-location" : "left",
"visibility-type" : "full-body",
"detailed-visibility" : [ "occlusion-body" ]
},
"id" : "b46d3e71-3c4c-49d1-b5bb-ef3e282fc843",
"keyframeType" : [ "classification", "position" ],
"relationships" : [ ],
"coordinates" : [ {
"x" : 225,
"y" : 715
}, {
"x" : 225,
"y" : 281
}, {
"x" : 650,
"y" : 281
}, {
"x" : 650,
"y" : 715
} ]
} ]
},
И так для каждого фрейма.
Как можно сделать ,что бы значения "Face1" "Face2" были вначале а Seatbelt в конце ?
Заранее спасибо.