提交 | 用户 | 时间
|
149dd0
|
1 |
package com.iailab.netsdk.lib.structure; |
H |
2 |
|
|
3 |
import com.iailab.netsdk.lib.NetSDKLib; |
|
4 |
|
|
5 |
/** |
|
6 |
* @author 251823 |
|
7 |
* @description 事件类型EVENT_IVS_NUMBERSTAT(数量统计事件)对应的规则配置 |
|
8 |
* @date 2022/09/23 16:15:49 |
|
9 |
*/ |
|
10 |
public class CFG_NUMBERSTAT_INFO extends NetSDKLib.SdkStructure { |
|
11 |
/** |
|
12 |
* 规则名称,不同规则不能重名 |
|
13 |
*/ |
|
14 |
public byte[] szRuleName = new byte[128]; |
|
15 |
/** |
|
16 |
* 规则使能 |
|
17 |
*/ |
|
18 |
public byte bRuleEnable; |
|
19 |
/** |
|
20 |
* 保留字段 |
|
21 |
*/ |
|
22 |
public byte[] bReserved = new byte[3]; |
|
23 |
/** |
|
24 |
* 相应物体类型个数 |
|
25 |
*/ |
|
26 |
public int nObjectTypeNum; |
|
27 |
/** |
|
28 |
* 相应物体类型列表 |
|
29 |
*/ |
|
30 |
public MaxNameByteArrInfo[] szObjectTypes = (MaxNameByteArrInfo[])new MaxNameByteArrInfo().toArray(NetSDKLib.MAX_OBJECT_LIST_SIZE); |
|
31 |
/** |
|
32 |
* 数量上限 单位:个,1~65535 |
|
33 |
*/ |
|
34 |
public int nUpperLimit; |
|
35 |
/** |
|
36 |
* 上报周期 单位:秒,1~65535 |
|
37 |
*/ |
|
38 |
public int nPeriod; |
|
39 |
/** |
|
40 |
* 检测区顶点数 |
|
41 |
*/ |
|
42 |
public int nDetectRegionPoint; |
|
43 |
/** |
|
44 |
* 检测区 |
|
45 |
*/ |
|
46 |
public NetSDKLib.CFG_POLYGON[] stuDetectRegion = new NetSDKLib.CFG_POLYGON[20]; |
|
47 |
/** |
|
48 |
* 报警联动 |
|
49 |
*/ |
|
50 |
public NetSDKLib.CFG_ALARM_MSG_HANDLE stuEventHandler = new NetSDKLib.CFG_ALARM_MSG_HANDLE(); |
|
51 |
/** |
|
52 |
* 事件响应时间段 |
|
53 |
*/ |
|
54 |
public NetSDKLib.TIME_SECTION_WEEK_DAY_10[] stuTimeSection = |
|
55 |
(NetSDKLib.TIME_SECTION_WEEK_DAY_10[])new NetSDKLib.TIME_SECTION_WEEK_DAY_10().toArray(NetSDKLib.WEEK_DAY_NUM); |
|
56 |
/** |
|
57 |
* 云台预置点编号 0~65535 |
|
58 |
*/ |
|
59 |
public int nPtzPresetId; |
|
60 |
/** |
|
61 |
* 数量统计类型 支持:"Region" 区域类型 "Entrance" 出入口类型 |
7412dd
|
62 |
* {@link com.iailab.netsdk.lib.enumeration.CFG_LINK_TYPE} |
149dd0
|
63 |
*/ |
H |
64 |
public int emType; |
|
65 |
/** |
|
66 |
* 正常运动方向, 按照此方向行驶是正向,反过来是逆行 只对出入口类型有效。第一个点是起点,第二个点是终点,点的坐标归一化到[0,8191]区间。 |
|
67 |
*/ |
|
68 |
public NetSDKLib.CFG_POLYGON[] stDirection = new NetSDKLib.CFG_POLYGON[2]; |
|
69 |
/** |
|
70 |
* 记录周期,单位:分钟,1~10 |
|
71 |
*/ |
|
72 |
public int nRecordInterval; |
|
73 |
/** |
|
74 |
* 进入数报警阈值,0表示不报警 |
|
75 |
*/ |
|
76 |
public int nEnterThreshold; |
|
77 |
/** |
|
78 |
* 离开数报警阈值,0表示不报警 |
|
79 |
*/ |
|
80 |
public int nExitThreshold; |
|
81 |
/** |
|
82 |
* 滞留数报警阈值,0表示不报警 |
|
83 |
*/ |
|
84 |
public int nInsideThreshold; |
|
85 |
/** |
|
86 |
* 计划ID,仅球机有效,从1开始 |
|
87 |
*/ |
|
88 |
public int nPlanID; |
|
89 |
/** |
|
90 |
* 区域ID,一个预置点可以对应多个区域 |
|
91 |
*/ |
|
92 |
public int nAreaID; |
|
93 |
/** |
|
94 |
* 检测线实际最大个数 |
|
95 |
*/ |
|
96 |
public int nMaxDetectLineNum; |
|
97 |
/** |
|
98 |
* 离开检测线坐标 |
|
99 |
*/ |
|
100 |
public NetSDKLib.CFG_POLYLINE[] stuDetectLine = new NetSDKLib.CFG_POLYLINE[20]; |
|
101 |
/** |
|
102 |
* 停留超时时间 |
|
103 |
*/ |
|
104 |
public int nStayMinDuration; |
|
105 |
/** |
|
106 |
* 前端视频分析联动 |
|
107 |
*/ |
|
108 |
public NetSDKLib.CFG_ALARM_MSG_HANDLE stuRemoteEventHandler = new NetSDKLib.CFG_ALARM_MSG_HANDLE(); |
|
109 |
/** |
|
110 |
* 前端视频分析联动响应时间段 |
|
111 |
*/ |
|
112 |
public NetSDKLib.TIME_SECTION_WEEK_DAY_10[] stuRemoteTimeSection = |
|
113 |
(NetSDKLib.TIME_SECTION_WEEK_DAY_10[])new NetSDKLib.TIME_SECTION_WEEK_DAY_10().toArray(NetSDKLib.WEEK_DAY_NUM); |
|
114 |
|
|
115 |
|
|
116 |
public CFG_NUMBERSTAT_INFO() { |
|
117 |
for (int i = 0; i < stuDetectRegion.length; i++) { |
|
118 |
stuDetectRegion[i] = new NetSDKLib.CFG_POLYGON(); |
|
119 |
} |
|
120 |
for (int i = 0; i < stuTimeSection.length; i++) { |
|
121 |
stuTimeSection[i] = new NetSDKLib.TIME_SECTION_WEEK_DAY_10(); |
|
122 |
} |
|
123 |
for (int i = 0; i < stDirection.length; i++) { |
|
124 |
stDirection[i] = new NetSDKLib.CFG_POLYGON(); |
|
125 |
} |
|
126 |
for (int i = 0; i < stuDetectLine.length; i++) { |
|
127 |
stuDetectLine[i] = new NetSDKLib.CFG_POLYLINE(); |
|
128 |
} |
|
129 |
for (int i = 0; i < stuRemoteTimeSection.length; i++) { |
|
130 |
stuRemoteTimeSection[i] = new NetSDKLib.TIME_SECTION_WEEK_DAY_10(); |
|
131 |
} |
|
132 |
} |
|
133 |
} |