summaryrefslogtreecommitdiff
path: root/source/use_case/object_detection/src/UseCaseHandler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'source/use_case/object_detection/src/UseCaseHandler.cc')
-rw-r--r--source/use_case/object_detection/src/UseCaseHandler.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/use_case/object_detection/src/UseCaseHandler.cc b/source/use_case/object_detection/src/UseCaseHandler.cc
index 332d199..4d0877a 100644
--- a/source/use_case/object_detection/src/UseCaseHandler.cc
+++ b/source/use_case/object_detection/src/UseCaseHandler.cc
@@ -102,6 +102,9 @@ namespace app {
DetectorPostProcess postProcess = DetectorPostProcess(outputTensor0, outputTensor1,
results, inputImgRows, inputImgCols);
do {
+ /* Ensure there are no results leftover from previous inference when running all. */
+ results.clear();
+
/* Strings for presentation/logging. */
std::string str_inf{"Running inference... "};