36 parse(std::vector<double> flattenedOutputList) {
37 std::vector<DetectedObject> detectedObjects;
38 detectedObjects.reserve(10);
40 int entryNum = flattenedOutputList.at(0);
42 for (
int i = 0; i < entryNum; i++) {
43 int startNum = i * 6 + 1;
45 std::array<double, 4>({flattenedOutputList.at(startNum + 2),
46 flattenedOutputList.at(startNum + 3),
47 flattenedOutputList.at(startNum + 4),
48 flattenedOutputList.at(startNum + 5)});
51 flattenedOutputList.at(startNum + 1),
53 detectedObjects.push_back(box);
55 return detectedObjects;