Video Analysis底层库拆分,sdk的go封装
zhangzengfei
2019-11-14 6c5479bec34af351eebf956adf993975ab12e2ae
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
#ifndef _c_wrapper_c_structure_h_
#define _c_wrapper_c_structure_h_
 
#include <string.h>
 
typedef struct _cPOINT {
    int x;
    int y;
} cPOINT;
 
typedef struct _cRECT {
    int left;
    int top;
    int right;
    int bottom;
} cRECT;
 
typedef struct _cIMAGE{
    unsigned char *data;
    int width;
    int height;
    int channel;
} cIMAGE;
 
typedef struct _cFaceAngle {
    int yaw;
    int pitch;
    int roll;
    float confidence;
} cFaceAngle;
 
typedef struct _cThftResult {
    int gender;//1-male,0-female
    int age;//range[0-100]
    int race; //[1-white,2-yellow,3-black]
    int beauty_level;//range[0-100]
    int smile_level;//range[0-100]
} cThftResult;
 
typedef struct _cFacePos {
    cRECT rcFace;
    cPOINT ptLeftEye;
    cPOINT ptRightEye;
    cPOINT ptMouth;
    cPOINT ptNose;
    cFaceAngle fAngle;
    int nQuality;
    
    unsigned char pFacialData[512];
} cFacePos;
 
typedef struct _cFaceInfo{
    cRECT rcFace;
    cPOINT ptLeftEye;
    cPOINT ptRightEye;
    cPOINT ptMouth;
    cPOINT ptNose;
    cFaceAngle fAngle;
    int nQuality;
    
    unsigned char pFacialData[8*1024];
    long        nFaceID;//face tracking id
} cFaceInfo;
 
typedef struct _cObjInfo
{
    cRECT rcObj;
    int typ;
    float prob;
} cObjInfo;
 
typedef struct _cPlateIDResult 
{
    char license[16];    // 车牌字符串
    char color[8];        // 车牌颜色
 
    int nColor;            // 车牌颜色
    int nType;            // 车牌类型
    int nConfidence;    // 整牌可信度
    int nBright;        // 亮度评价
    int nDirection;        // 车牌运动方向,0 unknown, 1 left, 2 right, 3 up, 4 down 
    
    cRECT rcLocation;                    // 车牌坐标
    const unsigned char *pbyBits;        // 识别结果对应的图片的缓冲区
    int nTime;                            // 识别耗时
    unsigned char nCarBright;            // 车的亮度
    unsigned char nCarColor;            // 车的颜色
    unsigned char nCarLogo;             // 车标类型
    unsigned char nCarType;                // 车辆类型
    unsigned char *pbyPlateBin;         // 车牌二值化结果(按bit存储)
    unsigned short nBinPlateWidth;      // 二值化结果中车牌宽度
    unsigned short nBinPlateHeight;     // 二值化结果中车牌高度
    char reserved[70];                    // 保留
    cRECT rcLogoLocation;                // 车标坐标
    unsigned short nCarModel;           // 车辆类型
    unsigned short nCarModelConfidence;    // 车型可信度    
}cPlateIDResult;
 
#endif