Refactor project structure
This commit is contained in:
25
modules/ANSMOT/ByteTrackNCNN/include/NCNNObject.h
Normal file
25
modules/ANSMOT/ByteTrackNCNN/include/NCNNObject.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#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);
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user