blob: 4c703c18fc326d5905cea2d585b9f2505ee95f3d [file] [log] [blame]
Éanna Ó Catháin919c14e2020-09-14 17:36:49 +01001//
2// Copyright © 2020 Arm Ltd and Contributors. All rights reserved.
3// SPDX-License-Identifier: MIT
4//
5#pragma once
6
7#include "Types.hpp"
8#include "DetectedObject.hpp"
9#include "IDetectionResultDecoder.hpp"
10
11namespace od
12{
13
14class SSDResultDecoder : public IDetectionResultDecoder
15{
16public:
17 /**
18 * Constructs MobileNet ssd v1 inference results decoder.
19 *
20 * @param ObjectThreshold object score threshold
21 */
22 SSDResultDecoder(float ObjectThreshold);
23
Éanna Ó Catháinc6ab02a2021-04-07 14:35:25 +010024 DetectedObjects Decode(const common::InferenceResults<float>& results,
25 const common::Size& outputFrameSize,
26 const common::Size& resizedFrameSize,
Éanna Ó Catháin919c14e2020-09-14 17:36:49 +010027 const std::vector<std::string>& labels) override;
28
29private:
30 float m_objectThreshold;
31};
32}// namespace od