dengzedong
2024-12-19 85b2001c0ec2f1adc598db3bf47ad457dcca7074
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
package com.iailab.netsdk.lib.enumeration;
 
 
/** 
* @author 291189
* @description  物品类型 
* @origin autoTool
* @date 2023/07/14 14:46:33
*/
public enum EM_INSIDE_OBJECT_TYPE {
/**
算法未识别物品
*/
EM_INSIDE_OBJECT_UNKNOWN(0,"算法未识别物品"),
/**
刀具
*/
EM_INSIDE_OBJECT_KNIFE(1,"刀具"),
/**
瓶装液体
*/
EM_INSIDE_OBJECT_BOTTLELIQUID(2,"瓶装液体"),
/**
枪支
*/
EM_INSIDE_OBJECT_GUN(3,"枪支"),
/**
雨伞
*/
EM_INSIDE_OBJECT_UMBRELLA(4,"雨伞"),
/**
手机
*/
EM_INSIDE_OBJECT_PHONE(5,"手机"),
/**
笔记本
*/
EM_INSIDE_OBJECT_NOTEBOOK(6,"笔记本"),
/**
充电宝
*/
EM_INSIDE_OBJECT_POWERBANK(7,"充电宝"),
/**
鞋子
*/
EM_INSIDE_OBJECT_SHOES(8,"鞋子"),
/**
杠子
*/
EM_INSIDE_OBJECT_ROD(9,"杠子"),
/**
金属
*/
EM_INSIDE_OBJECT_METAL(10,"金属"),
/**
爆炸物
*/
EM_INSIDE_OBJECT_EXPLOSIVE(11,"爆炸物"),
/**
喷雾喷灌
*/
EM_INSIDE_OBJECT_CONTAINERSPRAY(12,"喷雾喷灌"),
/**
烟花爆竹
*/
EM_INSIDE_OBJECT_EXPLOSIVE_FIREWORKS(13,"烟花爆竹"),
/**
打火机
*/
EM_INSIDE_OBJECT_LIGHTER(14,"打火机"),
/**
警棍
*/
EM_INSIDE_OBJECT_STICK(15,"警棍"),
/**
指虎
*/
EM_INSIDE_OBJECT_BRASSKNUCKLE(16,"指虎"),
/**
手铐
*/
EM_INSIDE_OBJECT_HANDCUFFS(17,"手铐"),
/**
象牙
*/
EM_INSIDE_OBJECT_IVORY(18,"象牙"),
/**
书籍
*/
EM_INSIDE_OBJECT_BOOK(19,"书籍"),
/**
光盘
*/
EM_INSIDE_OBJECT_CD(20,"光盘"),
/**
锤子
*/
EM_INSIDE_OBJECT_HAMMERS(21,"锤子"),
/**
钳子
*/
EM_INSIDE_OBJECT_PLIERS(22,"钳子"),
/**
斧头
*/
EM_INSIDE_OBJECT_AXE(23,"斧头"),
/**
螺丝刀
*/
EM_INSIDE_OBJECT_SCREW_DRIVER(24,"螺丝刀"),
/**
扳手
*/
EM_INSIDE_OBJECT_WRENCH(25,"扳手"),
/**
电击棍
*/
EM_INSIDE_OBJECT_ELECTRIC_SHOCK_STICK(26,"电击棍"),
/**
保温杯
*/
EM_INSIDE_OBJECT_THERMOS(27,"保温杯"),
/**
玻璃杯
*/
EM_INSIDE_OBJECT_GLASS_BOTTLES(28,"玻璃杯"),
/**
塑料瓶
*/
EM_INSIDE_OBJECT_PLASTIC_BOTTLE(29,"塑料瓶"),
/**
打火机油
*/
EM_INSIDE_OBJECT_IGNITION_OIL(30,"打火机油"),
/**
指甲油
*/
EM_INSIDE_OBJECT_NAIL_POLISH(31,"指甲油"),
/**
工具
*/
EM_INSIDE_OBJECT_BLUNT_INSTRUMENT(32,"工具"),
/**
剪刀
*/
EM_INSIDE_OBJECT_SCISSORS(33,"剪刀"),
/**
电子产品
*/
EM_INSIDE_OBJECT_ELECTRONIC(34,"电子产品"),
/**
手枪
*/
EM_INSIDE_OBJECT_PISTOL(35,"手枪"),
/**
折叠刀
*/
EM_INSIDE_OBJECT_FOLDINGKNIFE(36,"折叠刀"),
/**
尖刀
*/
EM_INSIDE_OBJECT_SHARPKNIFE(37,"尖刀"),
/**
菜刀
*/
EM_INSIDE_OBJECT_KITCHENKNIFE(38,"菜刀"),
/**
美工刀
*/
EM_INSIDE_OBJECT_UTILITYKNIFE(39,"美工刀"),
/**
烟花
*/
EM_INSIDE_OBJECT_FIREWORKS(40,"烟花"),
/**
爆竹
*/
EM_INSIDE_OBJECT_FIRECRACKER(41,"爆竹"),
/**
粉末
*/
EM_INSIDE_OBJECT_POWDER(42,"粉末"),
/**
难穿透物品
*/
EM_INSIDE_OBJECT_IMPENETERABLE_MATERALS(43,"难穿透物品"),
/**
香烟
*/
EM_INSIDE_OBJECT_CIGARETTE(44,"香烟"),
/**
电池
*/
EM_INSIDE_OBJECT_BATTERY(45,"电池"),
/**
零部件
*/
EM_INSIDE_OBJECT_GUNPARTS(46,"零部件"),
/**
火柴
*/
EM_INSIDE_OBJECT_MATCH(47,"火柴"),
/**
握把
*/
EM_INSIDE_OBJECT_GUNGRIP(48,"握把"),
/**
弹夹
*/
EM_INSIDE_OBJECT_GUNMAGAZINE(49,"弹夹"),
/**
套筒
*/
EM_INSIDE_OBJECT_GUNSLEEVE(50,"套筒"),
/**
枪管
*/
EM_INSIDE_OBJECT_GUNBARREL(51,"枪管"),
/**
子弹
*/
EM_INSIDE_OBJECT_BULLET(52,"子弹"),
/**
手雷
*/
EM_INSIDE_OBJECT_GRENADE(53,"手雷"),
/**
陶瓷片
*/
EM_INSIDE_OBJECT_CERAMICSHEET(54,"陶瓷片"),
/**
玻璃片
*/
EM_INSIDE_OBJECT_GLASSSHEET(55,"玻璃片"),
/**
IPAD底壳
*/
EM_INSIDE_OBJECT_IPADBASE(56,"IPAD底壳"),
/**
弹弓
*/
EM_INSIDE_OBJECT_SLINGSHOT(57,"弹弓"),
/**
毒品
*/
EM_INSIDE_OBJECT_DRUG(58,"毒品"),
/**
炸药包
*/
EM_INSIDE_OBJECT_EXPLOSIVEPACKAGE(59,"炸药包"),
/**
纽扣电池
*/
EM_INSIDE_OBJECT_CELLBATTERY(60,"纽扣电池"),
/**
铅蓄电池
*/
EM_INSIDE_OBJECT_LEADBATTERY(61,"铅蓄电池"),
/**
金属打火机
*/
EM_INSIDE_OBJECT_METALLIGHTER(62,"金属打火机"),
/**
化妆瓶
*/
EM_INSIDE_OBJECT_COSMETICBOTTLE(63,"化妆瓶"),
/**
易拉罐
*/
EM_INSIDE_OBJECT_CONTAINERCAN(64,"易拉罐"),
/**
气罐
*/
EM_INSIDE_OBJECT_AIRBOTTLE(65,"气罐"),
/**
方刀
*/
EM_INSIDE_OBJECT_SQUAREKNIFE(66,"方刀");
 
private int value;
 
private String note;
 
public String getNote() {
        return note;
    }
 
public int getValue() {
        return value;
    }
 
EM_INSIDE_OBJECT_TYPE(int givenValue, String note) {
        this.value = givenValue;
        this.note = note;
    }
 
public static String getNoteByValue(int givenValue) {
        for (EM_INSIDE_OBJECT_TYPE enumType : EM_INSIDE_OBJECT_TYPE.values()) {
            if (givenValue == enumType.getValue()) {
                return enumType.getNote();
            }
        }
        return null;
    }
 
public static int getValueByNote(String givenNote) {
        for (EM_INSIDE_OBJECT_TYPE enumType : EM_INSIDE_OBJECT_TYPE.values()) {
            if (givenNote.equals(enumType.getNote())) {
                return enumType.getValue();
            }
        }
        return -1;
    }
 
public static EM_INSIDE_OBJECT_TYPE getEnum(int value) {
        for (EM_INSIDE_OBJECT_TYPE e : EM_INSIDE_OBJECT_TYPE.values()) {
            if (e.getValue() == value)
                return e;
        }
        return EM_INSIDE_OBJECT_TYPE.EM_INSIDE_OBJECT_UNKNOWN;
    }
 
}