• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //
2 // Copyright © 2020 Arm Ltd and Contributors. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #pragma once
7 
8 #include <cstddef>
9 #include <cstdint>
10 #include <vector>
11 #include <tuple>
12 #include <armnn/BackendId.hpp>
13 
14 namespace od
15 {
16 
17 struct Size
18 {
19 
20     uint32_t m_Width;
21     uint32_t m_Height;
22 
Sizeod::Size23     Size() : Size(0, 0) {}
24 
Sizeod::Size25     Size(uint32_t width, uint32_t height) :
26             m_Width{width}, m_Height{height} {}
27 
Sizeod::Size28     Size(const Size& other)
29             : Size(other.m_Width, other.m_Height) {}
30 
31     ~Size() = default;
32 
33     Size &operator=(const Size& other) = default;
34 };
35 
36 struct BBoxColor
37 {
38     std::tuple<int, int, int> colorCode;
39 };
40 
41 struct ODPipelineOptions
42 {
43     std::string m_ModelName;
44     std::string m_ModelFilePath;
45     std::vector<armnn::BackendId> m_backends;
46 };
47 
48 using InferenceResult = std::vector<float>;
49 using InferenceResults = std::vector<InferenceResult>;
50 }