wangrong
2025-03-19 291afb9c81aae1d15d9e3edcea618d0a2e1fc5a6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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);
    }
}