zhangmeng
2019-12-10 c28e067bf1b68e7ec1da5e1bf6027b85f15873bd
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
146
147
148
149
150
151
152
153
154
155
156
157
158
package sdkstruct
 
// CPOINT pt
type CPOINT struct {
    X int32
    Y int32
}
 
// CRECT rc
type CRECT struct {
    Left   int32
    Top    int32
    Right  int32
    Bottom int32
}
 
// CIMAGE img
type CIMAGE struct {
    Data      *uint8
    Width     int32
    Height    int32
    Channel   int32
    Pad_cgo_0 [4]byte
}
 
//////////////////////////////// face
 
// CFaceAngle angle
type CFaceAngle struct {
    Yaw        int32
    Pitch      int32
    Roll       int32
    Confidence float32
}
 
// CThftResult res
type CThftResult struct {
    Gender       int32
    Age          int32
    Race         int32
    Beauty_level int32
    Smile_level  int32
}
 
// CFacePos pos
type CFacePos struct {
    RcFace      CRECT
    PtLeftEye   CPOINT
    PtRightEye  CPOINT
    PtMouth     CPOINT
    PtNose      CPOINT
    FAngle      CFaceAngle
    NQuality    int32
    PFacialData [512]uint8
}
 
// CFaceInfo info
type CFaceInfo struct {
    RcFace      CRECT
    PtLeftEye   CPOINT
    PtRightEye  CPOINT
    PtMouth     CPOINT
    PtNose      CPOINT
    FAngle      CFaceAngle
    NQuality    int32
    PFacialData [8192]uint8
    NFaceID     int64
}
 
//////////////////////////////// humantrack
 
// int left;//行人包围框左上角横坐标
// int right;//行人包围框右下角横坐标
// int top;//行人包围框左上角纵坐标
// int bottom;//行人包围框右下角纵坐标
// float confidence;//行人检测框置信度得分
// int center_x;//行人包围框中心点x
// int center_y;//行人包围框中心点y
// int ID;//行人跟踪ID
// float feature[FEATURESIZE];//行人专属特征,可用来做ReID
 
// FgInfo info
type FgInfo struct {
    Left       int32
    Right      int32
    Top        int32
    Bottom     int32
    Confidence float32
    X          int32
    Y          int32
    ID         int32
    Feature    [128]float32
}
 
// fgInfo fginfo[MAX_BG_NUM];//上述结构体,代表一幅图中所有的框,最大支持2000个框,暂不可修改
// int fgNum;//一幅图中框的数量(fginfo中的有效框数)
 
// FgResult result
type FgResult struct {
    Fginfo [2000]FgInfo
    FgNum  int32
}
 
//////////////////////////////// vehicle
 
// CVehicleITSResult res
type CVehicleITSResult struct {
    NPlateFlag      int32     //是否识别到车牌
    NColor          int32     //车辆颜色
    NType           int32     //车辆类型
    License         [20]uint8 //车牌号码
    NConfidence     int32     // 车牌可信度
    NCharNum        int32     // 未知
    NCharConfidence [20]int32 // 未知
 
    RcLocation    CRECT //车牌位置
    RcCarLocation CRECT //车辆位置
 
    VehicleType  [1024]uint8 //车辆类型 --总名称  jeep-大切诺基-2004
    VehicleBrand [1024]uint8 //车辆品牌 --jeep
    VehicleSub   [1024]uint8 //车辆子型号 --大切诺基
    VehicleType1 [1024]uint8 //车辆类型   轿车 货车  客车  面包车
 
    FVDConf    float32 //车辆检测置信度
    FConfdence float32 //车辆类型置信度
 
    NVehicleSubModel int32 //车型名称索引
    NVehicleBright   int32 //车辆深浅色
    NVehicleColor1   int32 //车身主颜色
    NVehicleColor2   int32 //车身辅颜色
 
    PCaptureImage [4]uint8 //视频模式识别下抓拍的图片数据
    NImageWidth   int32    //视频模式下抓拍图像宽度
    NImageHeight  int32    //视频模式下抓拍图像高度
}
 
//////////////////////////////// yolo
 
// CObjInfo yolo
type CObjInfo struct {
    RcObj CRECT
    Typ   int32
    Prob  float32
}
 
// CObjTrackInfo track yolo objs info
type CObjTrackInfo struct {
    ObjInfo CObjInfo
    ID      uint64
}
 
// SDKImage sdk image
type SDKImage struct {
    Data    []byte
    Width   int
    Height  int
    Channel int
}