if (objects.size() > 0)
{
for(size_t i = 0; i < objects.size(); i++){
Ttlwh a;
a.t=objects[i].rect.x;
a.l=objects[i].rect.y;
a.w=objects[i].rect.width;
a.h=objects[i].rect.height;
float score = objects[i].prob;
int obj_id = objects[i].label;
STrack strack(a, score, obj_id, this);
if (score >= track_thresh) detections.push_back(strack);
else detections_low.push_back(strack);
}
}
More specifically
a.t=objects[i].rect.x;
a.l=objects[i].rect.y;