From f5d6f18c82bdb395e1419dbe065a2991432f7b9c Mon Sep 17 00:00:00 2001 From: Moreno Razzoli Date: Mon, 21 Jun 2021 09:20:19 +0200 Subject: [PATCH] fix formatting --- demo/demo/demo.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/demo/demo/demo.cpp b/demo/demo/demo.cpp index 751a850..d14ce66 100644 --- a/demo/demo/demo.cpp +++ b/demo/demo/demo.cpp @@ -104,7 +104,7 @@ int main(int argc, char *argv[]) { std::vector batch_dnn_input; if(save_detections) - outfile.open("detections.csv", std::ofstream::out); + outfile.open("detections.csv", std::ofstream::out); int frame_num = -1; @@ -129,17 +129,17 @@ int main(int argc, char *argv[]) { detNN->update(batch_dnn_input, n_batch); detNN->draw(batch_frame); - if(save_detections){ - frame_num++; - tk::dnn::box b; - for(int bi=0; bibatchDetected[bi].size(); i++) { - b = detNN->batchDetected[bi][i]; - std::string det_class = detNN->classesNames[b.cl]; - outfile<batchDetected[bi].size(); i++) { + b = detNN->batchDetected[bi][i]; + std::string det_class = detNN->classesNames[b.cl]; + outfile<