blob: 78895f7ca8834a1e639af2d2d29726b6a81c5211 [file] [log] [blame]
Michael Levit06fcf752022-01-12 11:53:46 +02001/*
2 * Copyright (c) 2021 Arm Limited. All rights reserved.
3 * SPDX-License-Identifier: Apache-2.0
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17#ifndef DETECTION_RESULT_HPP
18#define DETECTION_RESULT_HPP
19
20
21namespace arm {
22namespace app {
23
24 /**
25 * @brief Class representing a single detection result.
26 */
27 class DetectionResult {
28 public:
29 double m_normalisedVal{0.0};
30 int m_x0{0};
31 int m_y0{0};
32 int m_w{0};
33 int m_h{0};
34
35 DetectionResult() = default;
36 ~DetectionResult() = default;
37
38 DetectionResult(double normalisedVal,int x0,int y0, int w,int h) :
39 m_normalisedVal(normalisedVal),
40 m_x0(x0),
41 m_y0(y0),
42 m_w(w),
43 m_h(h)
44 {
45 }
46 };
47
48} /* namespace app */
49} /* namespace arm */
50
51#endif /* DETECTION_RESULT_HPP */