Remove dependency on extern defined constants from OD use case
OD API now takes in these paramaters as part of the constructor
Change-Id: I4cce25e364b2a99847b4540440db059997f6a81b
diff --git a/source/use_case/object_detection/src/UseCaseHandler.cc b/source/use_case/object_detection/src/UseCaseHandler.cc
index e9bcd4a..a7acb46 100644
--- a/source/use_case/object_detection/src/UseCaseHandler.cc
+++ b/source/use_case/object_detection/src/UseCaseHandler.cc
@@ -27,9 +27,6 @@
namespace arm {
namespace app {
- namespace object_detection {
- extern const int channelsImageDisplayed;
- } /* namespace object_detection */
/**
* @brief Presents inference results along using the data presentation
@@ -102,8 +99,12 @@
DetectorPreProcess preProcess = DetectorPreProcess(inputTensor, true, model.IsDataSigned());
std::vector<object_detection::DetectionResult> results;
+ const object_detection::PostProcessParams postProcessParams {
+ inputImgRows, inputImgCols, object_detection::originalImageSize,
+ object_detection::anchor1, object_detection::anchor2
+ };
DetectorPostProcess postProcess = DetectorPostProcess(outputTensor0, outputTensor1,
- results, inputImgRows, inputImgCols);
+ results, postProcessParams);
do {
/* Ensure there are no results leftover from previous inference when running all. */
results.clear();