提交 | 用户 | 时间
|
ce910c
|
1 |
package com.netsdk.lib.structure; |
H |
2 |
|
|
3 |
import com.netsdk.lib.NetSDKLib; |
|
4 |
|
|
5 |
/** |
|
6 |
* @author 251823 |
|
7 |
* @description 事件类型EVENT_IVS_MAN_NUM_DETECTION(立体视觉区域内人数统计事件)对应的规则配置 |
|
8 |
* @date 2022/09/23 16:08:32 |
|
9 |
*/ |
|
10 |
public class CFG_IVS_MAN_NUM_DETECTION_INFO extends NetSDKLib.SdkStructure { |
|
11 |
/** |
|
12 |
* 规则名称,不同规则不能重名 |
|
13 |
*/ |
|
14 |
public byte[] szRuleName = new byte[128]; |
|
15 |
/** |
|
16 |
* 规则使能 |
|
17 |
*/ |
|
18 |
public int bRuleEnable; |
|
19 |
/** |
|
20 |
* 触发跟踪使能,仅对绊线,入侵规则有效 |
|
21 |
*/ |
|
22 |
public byte bTrackEnable; |
|
23 |
/** |
|
24 |
* 保留字段 |
|
25 |
*/ |
|
26 |
public byte[] bReserved1 = new byte[3]; |
|
27 |
/** |
|
28 |
* 相应物体类型个数 |
|
29 |
*/ |
|
30 |
public int nObjectTypeNum; |
|
31 |
/** |
|
32 |
* 相应物体类型列表 |
|
33 |
*/ |
|
34 |
public MaxNameByteArrInfo[] szObjectTypes = (MaxNameByteArrInfo[])new MaxNameByteArrInfo().toArray(NetSDKLib.MAX_OBJECT_LIST_SIZE); |
|
35 |
/** |
|
36 |
* 报警联动 |
|
37 |
*/ |
|
38 |
public NetSDKLib.CFG_ALARM_MSG_HANDLE stuEventHandler = new NetSDKLib.CFG_ALARM_MSG_HANDLE(); |
|
39 |
/** |
|
40 |
* 事件响应时间段 |
|
41 |
*/ |
|
42 |
public NetSDKLib.TIME_SECTION_WEEK_DAY_10[] stuTimeSection = |
|
43 |
(NetSDKLib.TIME_SECTION_WEEK_DAY_10[])new NetSDKLib.TIME_SECTION_WEEK_DAY_10().toArray(NetSDKLib.WEEK_DAY_NUM); |
|
44 |
/** |
|
45 |
* 云台预置点编号 0~65535 |
|
46 |
*/ |
|
47 |
public int nPtzPresetId; |
|
48 |
/** |
|
49 |
* 检测区域顶点数 |
|
50 |
*/ |
|
51 |
public int nDetectRegionPoint; |
|
52 |
/** |
|
53 |
* 检测区域坐标 |
|
54 |
*/ |
|
55 |
public NetSDKLib.CFG_POLYGON[] stuDetectRegion = new NetSDKLib.CFG_POLYGON[20]; |
|
56 |
/** |
|
57 |
* 异常人数阈值 |
|
58 |
*/ |
|
59 |
public int nThreshold; |
|
60 |
/** |
|
61 |
* 人数异常检测方式 0-小于等于阈值报警 1-大于等于阈值报警 |
|
62 |
*/ |
|
63 |
public int nDetectType; |
|
64 |
/** |
|
65 |
* null |
|
66 |
*/ |
|
67 |
public int nSensitivity; |
|
68 |
/** |
|
69 |
* 最大检测高度,单位cm |
|
70 |
*/ |
|
71 |
public int nMaxHeight; |
|
72 |
/** |
|
73 |
* 最小检测高度,单位cm |
|
74 |
*/ |
|
75 |
public int nMinHeight; |
|
76 |
/** |
|
77 |
* 是否开启滞留检测报警功能, 对应报警为StayDetection。 |
|
78 |
*/ |
|
79 |
public int bStayDetectEnable; |
|
80 |
/** |
|
81 |
* 最短滞留持续时间,单位秒[2, 65535], 开启滞留检测报警时需设置 |
|
82 |
*/ |
|
83 |
public int nStayMinDuration; |
|
84 |
/** |
|
85 |
* 是否开启人数异常报警功能, 默认为TRUE。对应报警为ManNumDetection |
|
86 |
*/ |
|
87 |
public int bManNumAlarmEnable; |
|
88 |
/** |
|
89 |
* 区域ID(一个预置点对应多个区域ID) |
|
90 |
*/ |
|
91 |
public int nAreaID; |
|
92 |
/** |
|
93 |
* 计划ID,范围 1~MaxNumberStatPlan |
|
94 |
*/ |
|
95 |
public int nPlanId; |
|
96 |
/** |
|
97 |
* 保留字节 |
|
98 |
*/ |
|
99 |
public byte[] bReserved = new byte[504]; |
|
100 |
|
|
101 |
public CFG_IVS_MAN_NUM_DETECTION_INFO() { |
|
102 |
for (int i = 0; i < stuTimeSection.length; i++) { |
|
103 |
stuTimeSection[i] = new NetSDKLib.TIME_SECTION_WEEK_DAY_10(); |
|
104 |
} |
|
105 |
for (int i = 0; i < stuDetectRegion.length; i++) { |
|
106 |
stuDetectRegion[i] = new NetSDKLib.CFG_POLYGON(); |
|
107 |
} |
|
108 |
} |
|
109 |
} |