zhangmeng
2019-11-19 54e26e896cafc1e63d6626b9eb0f6bfcbf0bbb0b
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
syntax = "proto3";
import "base.proto";
 
package protomsg;
 
// Image ipc struct
message Image {
    int32 width = 1;
    int32 height = 2;
    bytes data = 3;
 
    string timestamp = 4;
    int64 id = 5;
    string cid = 6;
}
 
message FaceAngle {
    int32 yaw = 1;
    int32 pitch = 2;
    int32 roll = 3;
    float confidence = 4;
}
message ThftResult {
    int32 gender = 1;
    int32 age = 2;
    int32 race = 3;
    int32 beauty = 4;
    int32 smile = 5;
}
message FacePos {
    Rect rcFace = 1;
    Point ptLeftEye = 2;
    Point ptRightEye = 3;
    Point ptMouth = 4;
    Point ptNose = 5;
    FaceAngle fAngle = 6;
    int32 quality = 7;
    bytes facialData = 8;
 
    uint64 faceID = 9;
}
message FaceInfo {
    Rect rcFace = 1;
    Point ptLeftEye = 2;
    Point ptRightEye = 3;
    Point ptMouth = 4;
    Point ptNose = 5;
    FaceAngle fAngle = 6;
    int32 quality = 7;
    bytes facialData = 8;
    int64 faceID = 9;
}
message ObjInfo {
    Rect rcObj = 1;
    int32 typ = 2;
    float prob = 3;
    uint64 objID = 4;
}
 
// sdk face property
message ResultFaceDetect {
    FacePos pos = 1;
    ThftResult result = 2;
    bytes feats = 3;
}
message ParamFacePos {
    repeated ResultFaceDetect faces = 1;
}
 
message ResultFaceExtCom {
    bytes feats = 1;
    bytes comp = 2;
    ResultFaceDetect pos = 3;
}
message ParamFaceFeature {
    repeated ResultFaceExtCom extComp = 2;
}
 
// sdk yolo detect
message ParamYoloObj {
    repeated ObjInfo infos = 1;
}
 
message SoInfo {
    string id = 1;
    string sdkId = 2;
    string soName = 3;
}
 
// sdk plate id detect
message PlateID{
    string license = 1;
    string color = 2;
    int32 nColor = 3;
    int32 nType = 4;
    int32 nConfidence = 5;
    int32 nBright = 6;
    int32 nDirection = 7;
    Rect rcLocation = 8;
    int32 nTime = 9;
    int32 nCarBright = 10;
    int32 NCarColor = 11;
    int32 nCarLogo = 12;
    int32 nCarType = 13;
    bytes plateBin = 14;
    bytes nBinPlateWidth = 15;
    bytes nBinPlateHeight = 16;
    Rect rcLogoLocation = 17;
    bytes nCarModel = 18;
    bytes nCarModelConfidence = 19;
 
    // bytes picCache = 19;
    // bytes reserved = 20;
}
message PlateIDResult {
    repeated PlateID result = 1;
}
 
// cloud
message PlateCloudID{
    string license = 1;
    Rect rcLocation = 2;
    int32 nConfidence = 3;
    int32 nType = 4;
    int32 nDirection = 5;
    int32 nCarColor = 6;
    int32 nCarColor1 = 7;
    int32 nCarBright = 8;
    int32 frameNo = 9;
    int32 faceWidth = 10;
    int32 faceHeight = 11;
    int32 grayFaceFlag = 12;
    int32 charNum = 13;
 
    // bytes X = 14;
    // bytes Y = 15;
    // int32 pResultBits = 16;
    // bytes time = 17;
    // repeated Rect charLocation = 18;
    // repeated Rect charConfidence = 19;
}
 
message PlateCloudIDResult {
    repeated PlateCloudID result = 1;
}