提交 | 用户 | 时间
|
149dd0
|
1 |
package com.iailab.netsdk.lib.structure; |
H |
2 |
|
|
3 |
import com.iailab.netsdk.lib.NetSDKLib; |
|
4 |
import com.sun.jna.Pointer; |
|
5 |
|
|
6 |
import java.util.Arrays; |
|
7 |
|
|
8 |
/** |
|
9 |
* @description: (倒地报警事件)对应数据块描述信息 |
|
10 |
* @author: 251589 |
|
11 |
* @time: 2020/11/25 19:16 |
|
12 |
*/ |
|
13 |
public class DEV_EVENT_TUMBLE_DETECTION_INFO extends NetSDKLib.SdkStructure { |
|
14 |
/** |
|
15 |
* 通道号 |
|
16 |
*/ |
|
17 |
public int nChannelID; |
|
18 |
|
|
19 |
/** |
|
20 |
* #define DH_EVENT_NAME_LEN 128 事件名称 |
|
21 |
*/ |
|
22 |
public byte[] szName = new byte[128]; |
|
23 |
|
|
24 |
/** |
|
25 |
* 事件动作,1表示持续性事件开始,2表示持续性事件结束; |
|
26 |
*/ |
|
27 |
public int nAction; |
|
28 |
|
|
29 |
/** |
|
30 |
* 时间戳(单位是毫秒) |
|
31 |
*/ |
|
32 |
public double PTS; |
|
33 |
|
|
34 |
/** |
|
35 |
* 事件发生的时间 |
|
36 |
*/ |
|
37 |
public NET_TIME_EX UTC; |
|
38 |
|
|
39 |
/** |
|
40 |
* 事件ID |
|
41 |
*/ |
|
42 |
public int nEventID; |
|
43 |
/** |
|
44 |
* UTC时间对应的毫秒数 |
|
45 |
*/ |
|
46 |
public int UTCMS; |
|
47 |
|
|
48 |
/** |
|
49 |
* 智能事件所属大类 |
|
50 |
*/ |
|
51 |
public int emClassType; |
|
52 |
|
|
53 |
/** |
|
54 |
* 目标ID |
|
55 |
*/ |
|
56 |
public int nObjectID; |
|
57 |
|
|
58 |
/** |
|
59 |
* 物体类型,支持以下:"Unknown", "Human", "Vehicle", "Fire", "Smoke", "Plate", |
|
60 |
* "HumanFace", "Container", "Animal", "TrafficLight", "PastePaper", |
|
61 |
* "HumanHead", "BulletHole", "Entity" #define DH_COMMON_STRING_16 16 // |
|
62 |
* 通用字符串长度16 |
|
63 |
*/ |
|
64 |
public byte[] szObjectType = new byte[16]; |
|
65 |
|
|
66 |
/** |
|
67 |
* 物体包围盒 |
|
68 |
*/ |
|
69 |
public NetSDKLib.NET_RECT stuBoundingBox; |
|
70 |
|
|
71 |
/** |
|
72 |
* 智能物体全局唯一物体标识 有效数据位21位,包含’\0’ 前2位%d%d:01-视频片段, 02-图片, 03-文件, 99-其他 |
|
73 |
* 中间14位YYYYMMDDhhmmss:年月日时分秒 后5位%u%u%u%u%u:物体ID,如00001 |
|
74 |
*/ |
|
75 |
public byte[] szSerialUUID = new byte[22]; |
|
76 |
|
|
77 |
/** |
|
78 |
* 全景广角图 |
|
79 |
*/ |
|
80 |
public NetSDKLib.SCENE_IMAGE_INFO stuSceneImage; |
|
81 |
|
|
82 |
/** |
|
83 |
* 图片信息数组,结构体NET_IMAGE_INFO_EX2数组指针 |
|
84 |
*/ |
|
85 |
public Pointer pstuImageInfo; |
|
86 |
|
|
87 |
/** |
|
88 |
* 图片信息个数 |
|
89 |
*/ |
|
90 |
public int nImageInfoNum; |
|
91 |
|
|
92 |
/** |
|
93 |
* 事件公共扩展字段结构体 |
|
94 |
*/ |
|
95 |
public NET_EVENT_INFO_EXTEND stuEventInfoEx = new NET_EVENT_INFO_EXTEND(); |
|
96 |
/** |
|
97 |
* 检测区个数 |
|
98 |
*/ |
|
99 |
public int nDetectRegionNum; |
|
100 |
/** |
|
101 |
* 检测区 |
|
102 |
*/ |
|
103 |
public NET_POINT_EX[] stuDetectRegion = new NET_POINT_EX[20]; |
|
104 |
|
|
105 |
/** |
|
106 |
* 保留字节 |
|
107 |
*/ |
|
108 |
public byte[] bReserved = new byte[834]; |
|
109 |
|
|
110 |
public DEV_EVENT_TUMBLE_DETECTION_INFO() { |
|
111 |
for (int i = 0; i < stuDetectRegion.length; i++) { |
|
112 |
stuDetectRegion[i] = new NET_POINT_EX(); |
|
113 |
} |
|
114 |
} |
|
115 |
|
|
116 |
@Override |
|
117 |
public String toString() { |
|
118 |
return "(倒地报警事件)对应数据块描述信息 DEV_EVENT_TUMBLE_DETECTION_INFO{" + "通道号 =" + nChannelID + ", 事件名称 =" |
|
119 |
+ Arrays.toString(szName) + ", 事件动作 =" + nAction + ", 时间戳(毫秒) =" + PTS + ", 事件发生的时间 =" + UTC |
|
120 |
+ ", 事件ID =" + nEventID + ", UTC时间对应的毫秒数 =" + UTCMS + ", 智能事件所属大类 =" + emClassType + ", 目标ID =" |
|
121 |
+ nObjectID + ", 物体类型 =" + Arrays.toString(szObjectType) + ", 物体包围盒 =" + stuBoundingBox + ", 保留字节 =" |
|
122 |
+ Arrays.toString(bReserved) + '}'; |
|
123 |
} |
|
124 |
|
|
125 |
} |