潘志宝
2024-11-28 231897591c909b164defebfdb5936387ec2807d0
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
package com.iailab.netsdk.lib.structure;
 
import com.iailab.netsdk.lib.NetSDKLib;
 
 
/**
 * @author 291189
 * @version 1.0
 * @description
 * @date 2021/8/24 17:10
 */
public class DEV_EVENT_FACEBODY_ANALYSE_INFO  extends NetSDKLib.SdkStructure {
    public   int                             nChannelID;                                 // 通道号
    public int                                nAction;                                    // 1:开始 2:停止
    public byte[]                            szName=new byte[128];                                // 事件名称
    public double                          PTS;                                        // 时间戳(单位是毫秒)
    public NET_TIME_EX                     UTC=new NET_TIME_EX();                                        // 事件发生的时间
    //参考枚举 EM_CLASS_TYPE
    public int                    emClassType;                                // 智能事件所属大类
    public int                            nEventID;                                   // 事件ID
    public int                            nObjectID;                                    // 物体ID
    public int                            nRuleID;                                    // 智能事件规则编号,用于标示哪个规则触发的事件
    public int                            nSequence;                                    // 帧序号
    public int                                nGroupID;                                    // 事件组ID,一次检测的多个nGroupID相同
    public int                                nCountInGroup;                                // 一个事件组内的抓拍张数,一次检测的多个nCountInGroup相同
    public int                             nIndexInGroup;                                // 一个事件组内的抓拍序号,从1开始
    public byte[]                            byReserved1=new byte[4];                                // 字节对齐
    public FACE_TRAIT                        stuFaceTrait=new FACE_TRAIT();                                // 人脸特征
    public BODY_TRAIT                        stuBodyTrait=new BODY_TRAIT();                                // 人体特征
    public NetSDKLib.NET_EVENT_IMAGE_OFFSET_INFO stuBodyImage=new NetSDKLib.NET_EVENT_IMAGE_OFFSET_INFO();                                // 人体图片信息
    public NetSDKLib.NET_EVENT_IMAGE_OFFSET_INFO stuFaceImage=new NetSDKLib.NET_EVENT_IMAGE_OFFSET_INFO();                                 // 人脸图片信息
    public NetSDKLib.NET_EVENT_IMAGE_OFFSET_INFO stuSceneImage=new NetSDKLib.NET_EVENT_IMAGE_OFFSET_INFO();                                // 全景图片信息
    public OBJECT_RELATED_INFO                stuFaceObject=new OBJECT_RELATED_INFO();                                // 人脸关联信息
    public OBJECT_RELATED_INFO                stuBodyObject=new OBJECT_RELATED_INFO();                                // 人体关联信息
    public NetSDKLib.CANDIDATE_INFOEX[] stuCandidate=new  NetSDKLib.CANDIDATE_INFOEX[NetSDKLib.NET_MAX_CANDIDATE_NUM];            // 候选人脸列表
   public int                                nCandidateNum;                                // 返回的候选人脸个数
    public DEV_EVENT_FACEBODY_ANALYSE_INFO(){
        for(int i=0;i<stuCandidate.length;i++){
            stuCandidate[i] = new NetSDKLib.CANDIDATE_INFOEX();
        }
    }
 
    @Override
    public String toString() {
        return "DEV_EVENT_FACEBODY_ANALYSE_INFO{" +
                "nChannelID=" + nChannelID +
                ", nAction=" + nAction +
                ", szName=" + new String(szName) +
                ", PTS=" + PTS +
                ", UTC=" + UTC +
                ", emClassType=" + emClassType +
                ", nEventID=" + nEventID +
                ", nObjectID=" + nObjectID +
                ", nRuleID=" + nRuleID +
                ", nSequence=" + nSequence +
                ", nGroupID=" + nGroupID +
                ", nCountInGroup=" + nCountInGroup +
                ", nIndexInGroup=" + nIndexInGroup +
 
                ", nCandidateNum=" + nCandidateNum +
                '}';
    }
}