提交 | 用户 | 时间
|
149dd0
|
1 |
package com.iailab.netsdk.lib.structure; |
H |
2 |
|
|
3 |
import com.iailab.netsdk.lib.NetSDKLib; |
|
4 |
import com.iailab.netsdk.lib.NetSDKLib.EVENT_INTELLI_COMM_INFO; |
|
5 |
import com.iailab.netsdk.lib.NetSDKLib.NET_MSG_OBJECT; |
|
6 |
import com.iailab.netsdk.lib.NetSDKLib.NET_POINT; |
|
7 |
import com.sun.jna.Pointer; |
|
8 |
|
|
9 |
/** |
|
10 |
* @author 251823 |
|
11 |
* @description 事件类型 EVENT_IVS_HUDDLE_MATERIAL (乱放物料检测事件)对应的数据块描述信息 |
|
12 |
* @date 2020/11/19 |
|
13 |
*/ |
|
14 |
public class DEV_EVENT_HUDDLE_MATERIAL_INFO extends NetSDKLib.SdkStructure { |
|
15 |
|
|
16 |
/** |
|
17 |
* 通道号 |
|
18 |
*/ |
|
19 |
public int nChannelID; |
|
20 |
/** |
|
21 |
* 0:脉冲 1:开始 2:停止 |
|
22 |
*/ |
|
23 |
public int nAction; |
|
24 |
/** |
|
25 |
* 事件名称 |
|
26 |
*/ |
|
27 |
public byte[] szName = new byte[NetSDKLib.NET_COMMON_STRING_128]; |
|
28 |
|
|
29 |
/** |
|
30 |
* 时间戳(单位是毫秒) |
|
31 |
*/ |
|
32 |
public double PTS; |
|
33 |
|
|
34 |
/** |
|
35 |
* 事件发生的时间 |
|
36 |
*/ |
|
37 |
public NET_TIME_EX UTC; |
|
38 |
/** |
|
39 |
* 事件ID |
|
40 |
*/ |
|
41 |
public int nEventID; |
|
42 |
/** |
|
43 |
* 事件对应文件信息 |
|
44 |
*/ |
|
45 |
public NetSDKLib.NET_EVENT_FILE_INFO stuFileInfo; |
|
46 |
|
|
47 |
/** |
|
48 |
* 规则检测区域 |
|
49 |
*/ |
|
50 |
public NET_POINT[] DetectRegion = new NET_POINT[NetSDKLib.NET_MAX_DETECT_REGION_NUM]; |
|
51 |
|
|
52 |
/** |
|
53 |
* 规则检测区域顶点数 |
|
54 |
*/ |
|
55 |
public int nDetectRegionNum; |
|
56 |
|
|
57 |
/** |
|
58 |
* 检测到的物体 |
|
59 |
*/ |
|
60 |
public NET_MSG_OBJECT[] stuObjects = new NET_MSG_OBJECT[NetSDKLib.HDBJ_MAX_OBJECTS_NUM]; |
|
61 |
|
|
62 |
/** |
|
63 |
* 检测到的物体个数 |
|
64 |
*/ |
|
65 |
public int nObjectNum; |
|
66 |
|
|
67 |
/** |
|
68 |
* 智能事件公共信息 |
|
69 |
*/ |
|
70 |
public EVENT_INTELLI_COMM_INFO stuIntelliCommInfo; |
|
71 |
|
|
72 |
/** |
|
73 |
* 事件触发的预置名称 |
|
74 |
*/ |
|
75 |
public byte[] szPresetName = new byte[NetSDKLib.NET_COMMON_STRING_64]; |
|
76 |
|
|
77 |
/** |
|
78 |
* 违法持续时长,单位:秒,缺省值0表示无意义 |
|
79 |
*/ |
|
80 |
public int nViolationDuration; |
|
81 |
|
|
82 |
/** |
|
83 |
* 事件关联ID,同一个物体或图片生成多个事件时SourceID相同 |
|
84 |
*/ |
|
85 |
public byte[] szSourceID = new byte[NetSDKLib.NET_COMMON_STRING_32]; |
|
86 |
|
|
87 |
/** |
|
88 |
* 抓图标志(按位),具体见NET_RESERVED_COMMON |
|
89 |
*/ |
|
90 |
public int dwSnapFlagMask; |
|
91 |
|
|
92 |
/** |
|
93 |
* 全景图图片信息,事件前2~5s抓图 |
|
94 |
*/ |
|
95 |
public NetSDKLib.SCENE_IMAGE_INFO_EX stuSceneImage = new NetSDKLib.SCENE_IMAGE_INFO_EX(); |
|
96 |
/** |
|
97 |
* 图片信息数组,指针对应NET_IMAGE_INFO_EX2数组 |
|
98 |
*/ |
|
99 |
public Pointer pstuImageInfo; |
|
100 |
/** |
|
101 |
* 图片信息个数 |
|
102 |
*/ |
|
103 |
public int nImageInfoNum; |
|
104 |
/** |
|
105 |
* 合成图,指针对应SCENE_IMAGE_INFO_EX数组 |
|
106 |
*/ |
|
107 |
public Pointer pstuMosaicImage; |
|
108 |
/** |
|
109 |
* 合成图个数 |
|
110 |
*/ |
|
111 |
public int nMosaicImageNum; |
|
112 |
/** |
|
113 |
* 事件发生前抓图,指针对应SCENE_IMAGE_INFO_EX数组 |
|
114 |
*/ |
|
115 |
public Pointer pstuAdvanceImage; |
|
116 |
/** |
|
117 |
* 事件发生前抓图个数 |
|
118 |
*/ |
|
119 |
public int nAdvanceImageNum; |
|
120 |
/** |
|
121 |
* 保留字节,留待扩展 |
|
122 |
*/ |
|
123 |
public byte[] byReserved = new byte[3292 - NetSDKLib.POINTERSIZE * 3]; |
|
124 |
|
|
125 |
public DEV_EVENT_HUDDLE_MATERIAL_INFO() { |
|
126 |
for (int i = 0; i < stuObjects.length; ++i) { |
|
127 |
stuObjects[i] = new NET_MSG_OBJECT(); |
|
128 |
} |
|
129 |
|
|
130 |
for (int i = 0; i < DetectRegion.length; ++i) { |
|
131 |
DetectRegion[i] = new NET_POINT(); |
|
132 |
} |
|
133 |
} |
|
134 |
|
|
135 |
} |