派生自 development/c++

pansen
2018-12-18 839c5a5c5800fadb14d829794a70e23157eef179
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
//
// Created by ps on 18-12-18.
//
 
#ifndef TESTCODE_FACEDEFINE_H
#define TESTCODE_FACEDEFINE_H
 
#include <vector>
#include <string>
 
//using namespace std;
using std::vector;
using std::string;
 
struct FaceFeatureResult {
    vector<unsigned char> feature;
    float score;
};
 
struct FaceDetectResult {
    FaceDetectResult() : attributes(256), trackingId(-1) {}
 
    int id;
    int left;
    int top;
    int width;
    int height;
    float score;
    float yaw;        // 水平转角,真实度量的左负右正, 单位,角度
    float pitch;    // 俯仰角,真实度量的上负下正, 单位,角度
    float roll;        // 旋转角,真实度量的左负右正, 单位,角度
    float angle;    // sqrt(yaw*yaw/3+pitch*pitch/3+roll*roll/3)
    vector<char> attributes;
    float trackingId;
};
 
struct DbSearchResult {
    int index;
    float confidence;
    string dbId;
};
 
struct FaceSearchResult {
    int index;
    int left;
    int top;
    int width;
    int height;
    float score;
    float confidence;
    string dbId;
};
 
struct FaceImage {
    int width;
    int height;
    int stride;
    unsigned char *data;
};
#endif //TESTCODE_FACEDEFINE_H