25 lines
638 B
C++
25 lines
638 B
C++
#pragma once
|
|
#include "NCNNRect.h"
|
|
namespace ByteTrackNCNN
|
|
{
|
|
struct Object
|
|
{
|
|
ByteTrackNCNN::Rect<float> box; //left, top, right, bottom
|
|
int label;
|
|
float confidence;
|
|
float left;
|
|
float top;
|
|
float right;
|
|
float bottom;
|
|
std::string object_id;
|
|
|
|
Object(const ByteTrackNCNN::Rect<float>& _box,
|
|
const int& _label,
|
|
const float& _confidence,
|
|
const float& _left,
|
|
const float& _top,
|
|
const float& _right,
|
|
const float& _bottom,
|
|
const std::string& _object_id);
|
|
};
|
|
} |