blob: 85b54c255f5a4c271bb9c455e19c282f1b187b70 [file] [log] [blame]
//
// Copyright © 2017 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#pragma once
#include <string>
#include <utility>
namespace
{
struct BoundingBox
{
BoundingBox()
: BoundingBox(0.0f, 0.0f, 0.0f, 0.0f)
{}
BoundingBox(float xMin, float yMin, float xMax, float yMax)
: m_XMin(xMin)
, m_YMin(yMin)
, m_XMax(xMax)
, m_YMax(yMax)
{}
float m_XMin;
float m_YMin;
float m_XMax;
float m_YMax;
};
struct DetectedObject
{
DetectedObject(unsigned int detectedClass,
const BoundingBox& boundingBox,
float confidence)
: m_Class(detectedClass)
, m_BoundingBox(boundingBox)
, m_Confidence(confidence)
{}
unsigned int m_Class;
BoundingBox m_BoundingBox;
float m_Confidence;
};
using ObjectDetectionInput = std::pair<std::string, DetectedObject>;
} // anonymous namespace