Éanna Ó Catháin | 919c14e | 2020-09-14 17:36:49 +0100 | [diff] [blame] | 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 | |
| 23 | Size() : Size(0, 0) {} |
| 24 | |
| 25 | Size(uint32_t width, uint32_t height) : |
| 26 | m_Width{width}, m_Height{height} {} |
| 27 | |
| 28 | 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 | } |