first commit

This commit is contained in:
陈赣
2026-06-03 12:43:14 +08:00
commit ba76cfae28
608 changed files with 120791 additions and 0 deletions

36
objects/vp_sub_target.cpp Normal file
View File

@@ -0,0 +1,36 @@
#include "vp_sub_target.h"
namespace vp_objects {
vp_sub_target::vp_sub_target(int x,
int y,
int width,
int height,
int class_id,
float score,
std::string label,
int frame_index,
int channel_index):
x(x),
y(y),
width(width),
height(height),
class_id(class_id),
score(score),
label(label),
frame_index(frame_index),
channel_index(channel_index) {
}
vp_sub_target::~vp_sub_target() {
}
std::shared_ptr<vp_sub_target> vp_sub_target::clone() {
return std::make_shared<vp_sub_target>(*this);
}
vp_rect vp_sub_target::get_rect() const {
return vp_rect(x, y, width, height);
}
}