wangrong
2025-01-23 02819b5c047bb354b0ef2374e7c6a6ac4bbd5bba
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
#include "vp_frame_face_target.h"
 
namespace vp_objects {
        
    vp_frame_face_target::vp_frame_face_target(int x, 
                                                int y, 
                                                int width, 
                                                int height, 
                                                float score, 
                                                std::vector<std::pair<int, int>> key_points, 
                                                std::vector<float> embeddings):
                                                x(x),
                                                y(y),
                                                width(width),
                                                height(height),
                                                score(score),
                                                key_points(key_points),
                                                embeddings(embeddings) {
        
    }
    
    vp_frame_face_target::~vp_frame_face_target() {
    }
 
    std::shared_ptr<vp_frame_face_target> vp_frame_face_target::clone() {
        return std::make_shared<vp_frame_face_target>(*this);
    }
 
    vp_rect vp_frame_face_target::get_rect() const{
        return vp_rect(x, y, width, height);
    }
}