Video Analysis底层库拆分,sdk的go封装
zhangzengfei
2019-11-14 01f10af7d520bd93367f385f91e33849f5d8773e
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
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
// cgo -godefs cgodefs.go
 
package gosdk
 
type CPOINT struct {
    X int32
    Y int32
}
type CRECT struct {
    Left   int32
    Top    int32
    Right  int32
    Bottom int32
}
type CIMAGE struct {
    Data      *uint8
    Width     int32
    Height    int32
    Channel   int32
    Pad_cgo_0 [4]byte
}
type CFaceAngle struct {
    Yaw        int32
    Pitch      int32
    Roll       int32
    Confidence float32
}
type CThftResult struct {
    Gender       int32
    Age          int32
    Race         int32
    Beauty_level int32
    Smile_level  int32
}
type CFacePos struct {
    RcFace      CRECT
    PtLeftEye   CPOINT
    PtRightEye  CPOINT
    PtMouth     CPOINT
    PtNose      CPOINT
    FAngle      CFaceAngle
    NQuality    int32
    PFacialData [512]uint8
}
type CFaceInfo struct {
    RcFace      CRECT
    PtLeftEye   CPOINT
    PtRightEye  CPOINT
    PtMouth     CPOINT
    PtNose      CPOINT
    FAngle      CFaceAngle
    NQuality    int32
    PFacialData [8192]uint8
    NFaceID     int64
}
type CObjInfo struct {
    RcObj CRECT
    Typ   int32
    Prob  float32
}
 
//track yolo objs info
type CObjTrackInfo struct {
    ObjInfo CObjInfo
    ID      uint64
}
 
type CPlateIDCfg struct {
    FastMemorySize int32 // DSP等的片内内存大小 单位K
    MemorySize     int32 // 普通内存大小 单位 M
    MinPlateWidth  int32 // 检测的最小车牌宽度,以像素为单位
    MaxPlateWidth  int32 // 检测的最大车牌宽度,以像素为单位
    MaxImageWidth  int32 // 最大图像宽度
    MaxImageHeight int32 // 最大图像高度
    IsFieldImage   uint8 // 是否是场图像
    MovingImage    uint8 // 识别运动or静止图像
    OrderOpt       uint8 // 输出顺序选项 0-置信度 1-自上而下 2-自下而上
    LeanCorrection uint8 // 是否启用车牌旋转功能,默认开启
    ImproveSpeed   uint8 // 0: 识别率优先 1:识别速度优先
    CarLogo        uint8 // 0: 不检测车标 1: 检测车标
    LotDetect      uint8 // 0: 不检测车位 1: 检测车位
    Shadow         uint8 // 0: 针对无阴影的车牌 1:针对有阴影的车牌,默认开启
    ShieldRailing  uint8 // 0: 屏蔽栏杆干扰, 1:不屏蔽栏杆干扰
    CarModel       uint8 // 0: 不识别车型, 1: 识别车型
    LocateTh       uint8 // 车牌定位阈值
    OCRTh          uint8 // 车牌识别阈值
 
    Individual       uint8 // 个性化车牌开启
    TwoRowYellow     uint8 // 双层黄色车牌开启
    ArmPolice        uint8 // 单层武警车牌开启
    ArmPolice2       uint8 // 双层武警车牌开启
    TwoRowArmy       uint8 // 双层军队车牌开启
    Tractor          uint8 // 农用车车牌开启
    Embassy          uint8 // 使馆车牌开启
    ChangNei         uint8 // 厂内车牌开启
    MinHang          uint8 // 民航车牌开启
    Consulate        uint8 // 领事馆车牌开启
    NewEnergy        uint8 // 新能源车牌开启
    OnlyTwoRowYellow uint8 // 只识别双层黄牌开启
    OnlyLocation     uint8 // 只定位车牌开启
}
 
type CPlateIDResult struct {
    License [16]uint8
    Color   [8]uint8
 
    NColor      int32
    NType       int32
    NConfidence int32
    NBright     int32
    NDirection  int32
 
    RcLocation          CRECT
    PbyBits             [4]uint8
    NTime               int32
    NCarBright          uint8
    NCarColor           uint8
    NCarLogo            uint8
    NCarType            uint8
    PbyPlateBin         [4]uint8
    NBinPlateWidth      [2]uint8
    NBinPlateHeight     [2]uint8
    Reserved            [70]uint8
    RcLogoLocation      CRECT
    NCarModel           [2]uint8
    NCarModelConfidence [2]uint8
}