diff options
author | Éanna Ó Catháin <eanna.ocathain@arm.com> | 2021-04-07 14:35:25 +0100 |
---|---|---|
committer | Jim Flynn <jim.flynn@arm.com> | 2021-05-07 09:11:52 +0000 |
commit | c6ab02a626e15b4a12fc09ecd844eb8b95380c3c (patch) | |
tree | 9912ed9cdb89cdb24483b22d6621ae30049ae321 /samples/ObjectDetection/include/ImageUtils.hpp | |
parent | e813d67f86df41a238ff79b5c554ef5027f56576 (diff) | |
download | armnn-c6ab02a626e15b4a12fc09ecd844eb8b95380c3c.tar.gz |
MLECO-1252 ASR sample application using the public ArmNN C++ API.
Change-Id: I98cd505b8772a8c8fa88308121bc94135bb45068
Signed-off-by: Éanna Ó Catháin <eanna.ocathain@arm.com>
Diffstat (limited to 'samples/ObjectDetection/include/ImageUtils.hpp')
-rw-r--r-- | samples/ObjectDetection/include/ImageUtils.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/samples/ObjectDetection/include/ImageUtils.hpp b/samples/ObjectDetection/include/ImageUtils.hpp index 07e2b839f9..9bae568755 100644 --- a/samples/ObjectDetection/include/ImageUtils.hpp +++ b/samples/ObjectDetection/include/ImageUtils.hpp @@ -21,7 +21,7 @@ const cv::InterpolationFlags DefaultResizeFlag = cv::INTER_NEAREST; */ void AddInferenceOutputToFrame(od::DetectedObjects& decodedResults, cv::Mat& inputFrame, - std::vector<std::tuple<std::string, od::BBoxColor>>& labels); + std::vector<std::tuple<std::string, common::BBoxColor>>& labels); /** * @brief Function to resize a frame while keeping aspect ratio. @@ -30,7 +30,7 @@ void AddInferenceOutputToFrame(od::DetectedObjects& decodedResults, * @param[out] dest the frame we want to resize into. * @param[in] aspectRatio aspect ratio to use when resizing. */ -void ResizeFrame(const cv::Mat& frame, cv::Mat& dest, const od::Size& aspectRatio); +void ResizeFrame(const cv::Mat& frame, cv::Mat& dest, const common::Size& aspectRatio); /** * @brief Function to pad a frame. @@ -49,7 +49,7 @@ void PadFrame(const cv::Mat& src, cv::Mat& dest, int bottom, int right); * @param cache operation requires intermediate data container. * @param destSize size of the destination frame */ -void ResizeWithPad(const cv::Mat& frame, cv::Mat& dest, cv::Mat& cache, const od::Size& destSize); +void ResizeWithPad(const cv::Mat& frame, cv::Mat& dest, cv::Mat& cache, const common::Size& destSize); /** * @brief Function to retrieve the cv::scalar color from a RGB tuple. |