提交 | 用户 | 时间
|
149dd0
|
1 |
package com.iailab.netsdk.lib.structure; |
H |
2 |
|
|
3 |
|
|
4 |
import com.iailab.netsdk.lib.NetSDKLib; |
|
5 |
import com.iailab.netsdk.lib.NetSDKLib.NET_EVENT_FILE_INFO; |
|
6 |
import com.sun.jna.Pointer; |
|
7 |
|
|
8 |
/** |
|
9 |
* @author 260611 |
|
10 |
* @description 事件类型EVENT_IVS_ABNORMALRUNDETECTION(异常奔跑事件)对应的数据块描述信息 |
|
11 |
* @date 2023/04/21 16:10:00 |
|
12 |
*/ |
|
13 |
public class DEV_EVENT_ABNORMALRUNDETECTION_INFO extends NetSDKLib.SdkStructure { |
|
14 |
/** |
|
15 |
* 通道号 |
|
16 |
*/ |
|
17 |
public int nChannelID; |
|
18 |
/** |
|
19 |
* 事件名称 |
|
20 |
*/ |
|
21 |
public byte[] szName = new byte[128]; |
|
22 |
/** |
|
23 |
* 字节对齐 |
|
24 |
*/ |
|
25 |
public byte[] bReserved1 = new byte[4]; |
|
26 |
/** |
|
27 |
* 时间戳(单位是毫秒) |
|
28 |
*/ |
|
29 |
public double PTS; |
|
30 |
/** |
|
31 |
* 事件发生的时间 |
|
32 |
*/ |
|
33 |
public NET_TIME_EX UTC = new NET_TIME_EX(); |
|
34 |
/** |
|
35 |
* 事件ID |
|
36 |
*/ |
|
37 |
public int nEventID; |
|
38 |
/** |
|
39 |
* 检测到的物体 |
|
40 |
*/ |
|
41 |
public NetSDKLib.DH_MSG_OBJECT stuObject = new NetSDKLib.DH_MSG_OBJECT(); |
|
42 |
/** |
|
43 |
* 物体运动速度,km/h |
|
44 |
*/ |
|
45 |
public double dbSpeed; |
|
46 |
/** |
|
47 |
* 触发速度,km/h |
|
48 |
*/ |
|
49 |
public double dbTriggerSpeed; |
|
50 |
/** |
|
51 |
* 规则检测区域顶点数 |
|
52 |
*/ |
|
53 |
public int nDetectRegionNum; |
|
54 |
/** |
|
55 |
* 规则检测区域 |
|
56 |
*/ |
|
57 |
public NetSDKLib.DH_POINT[] DetectRegion = new NetSDKLib.DH_POINT[20]; |
|
58 |
/** |
|
59 |
* 物体运动轨迹顶点数 |
|
60 |
*/ |
|
61 |
public int nTrackLineNum; |
|
62 |
/** |
|
63 |
* 物体运动轨迹 |
|
64 |
*/ |
|
65 |
public NetSDKLib.DH_POINT[] TrackLine = new NetSDKLib.DH_POINT[20]; |
|
66 |
/** |
|
67 |
* 事件对应文件信息 |
|
68 |
*/ |
|
69 |
public NET_EVENT_FILE_INFO stuFileInfo = new NET_EVENT_FILE_INFO(); |
|
70 |
/** |
|
71 |
* 事件动作,0表示脉冲事件,1表示持续性事件开始,2表示持续性事件结束; |
|
72 |
*/ |
|
73 |
public byte bEventAction; |
|
74 |
/** |
|
75 |
* 异常奔跑类型, 0-快速奔跑, 1-突然加速, 2-突然减速 |
|
76 |
*/ |
|
77 |
public byte bRunType; |
|
78 |
|
|
79 |
public byte[] byReserved = new byte[1]; |
|
80 |
/** |
|
81 |
* 图片的序号, 同一时间内(精确到秒)可能有多张图片, 从0开始 |
|
82 |
*/ |
|
83 |
public byte byImageIndex; |
|
84 |
/** |
|
85 |
* 抓图标志(按位),具体见NET_RESERVED_COMMON |
|
86 |
*/ |
|
87 |
public int dwSnapFlagMask; |
|
88 |
/** |
|
89 |
* 事件源设备上的index,-1表示数据无效 |
|
90 |
*/ |
|
91 |
public int nSourceIndex; |
|
92 |
/** |
|
93 |
* 事件源设备唯一标识,字段不存在或者为空表示本地设备 |
|
94 |
*/ |
|
95 |
public byte[] szSourceDevice = new byte[260]; |
|
96 |
/** |
|
97 |
* 事件触发累计次数 |
|
98 |
*/ |
|
99 |
public int nOccurrenceCount; |
|
100 |
/** |
|
101 |
* 智能事件公共信息 |
|
102 |
*/ |
|
103 |
public NetSDKLib.EVENT_INTELLI_COMM_INFO stuIntelliCommInfo = new NetSDKLib.EVENT_INTELLI_COMM_INFO(); |
|
104 |
/** |
|
105 |
* 图片信息数组,{@link NET_IMAGE_INFO_EX2} |
|
106 |
*/ |
|
107 |
public Pointer pstuImageInfo; |
|
108 |
/** |
|
109 |
* 图片信息个数 |
|
110 |
*/ |
|
111 |
public int nImageInfoNum; |
|
112 |
/** |
|
113 |
* 事件公共扩展字段结构体 |
|
114 |
*/ |
|
115 |
public NET_EVENT_INFO_EXTEND stuEventInfoEx = new NET_EVENT_INFO_EXTEND(); |
|
116 |
/** |
|
117 |
* 保留字节,留待扩展. |
|
118 |
*/ |
|
119 |
public byte[] bReserved = new byte[604]; |
|
120 |
|
|
121 |
public DEV_EVENT_ABNORMALRUNDETECTION_INFO() { |
|
122 |
for (int i = 0; i < DetectRegion.length; i++) { |
|
123 |
DetectRegion[i] = new NetSDKLib.DH_POINT(); |
|
124 |
} |
|
125 |
for (int i = 0; i < TrackLine.length; i++) { |
|
126 |
TrackLine[i] = new NetSDKLib.DH_POINT(); |
|
127 |
} |
|
128 |
} |
|
129 |
} |