提交 | 用户 | 时间
|
ce910c
|
1 |
package com.netsdk.lib.enumeration; |
H |
2 |
|
|
3 |
/** |
|
4 |
* @author 251823 |
|
5 |
* @description 应用场景, 内容与EM_SCENE_CLASS_TYPE一致 |
|
6 |
* @date 2021/01/16 |
|
7 |
*/ |
|
8 |
public enum EM_SCENE_TYPE { |
|
9 |
|
|
10 |
// 未知 |
|
11 |
EM_SCENE_UNKNOW(0, "未知"), |
|
12 |
// 普通场景 |
|
13 |
EM_SCENE_NORMAL(1, "Normal"), |
|
14 |
// 交通场景 |
|
15 |
EM_SCENE_TRAFFIC(2, "Traffic"), |
|
16 |
// 交通巡视 |
|
17 |
EM_SCENE_TRAFFIC_PATROL(3, "TrafficPatrol"), |
|
18 |
// 目标检测/目标识别 |
|
19 |
EM_SCENE_FACEDETECTION(4, "FaceDetection"), |
|
20 |
// ATM |
|
21 |
EM_SCENE_ATM(5, "ATM"), |
|
22 |
// 室内行为分析,和普通规则相同,对室内场景的算法优化版 |
|
23 |
EM_SCENE_INDOOR(6, "Indoor"), |
|
24 |
// 目标识别 |
|
25 |
EM_SCENE_FACERECOGNITION(7, "FaceRecognition"), |
|
26 |
// |
|
27 |
EM_SCENE_PS(8, ""), |
|
28 |
// 客流量统计 |
|
29 |
EM_SCENE_NUMBERSTAT(9, "NumberStat"), |
|
30 |
// 热度图 |
|
31 |
EM_SCENE_HEAT_MAP(10, "HeatMap"), |
|
32 |
// 视频诊断 |
|
33 |
EM_SCENE_VIDEODIAGNOSIS(11, "VideoDiagnosis"), |
|
34 |
// 车辆特征检测分析 |
|
35 |
EM_SCENE_VEHICLEANALYSE(12, "VehicleAnalyse"), |
|
36 |
// 自动录播 |
|
37 |
EM_SCENE_COURSERECORD(13, "CourseRecord"), |
|
38 |
// 车载场景(车载行业用,不同于智能交通的Traffic) |
|
39 |
EM_SCENE_VEHICLE(14, "Vehicle"), |
|
40 |
// 起立检测 |
|
41 |
EM_SCENE_STANDUPDETECTION(15, "StandUpDetection"), |
|
42 |
// 卡口 |
|
43 |
EM_SCENE_GATE(16, "Gate"), |
|
44 |
// 多预置点目标检测,配置一条规则但可以在不同预置点下生效 |
|
45 |
EM_SCENE_SDFACEDETECTION(17, "SDFaceDetect"), |
|
46 |
// 球机热度图计划 |
|
47 |
EM_SCENE_HEAT_MAP_PLAN(18, "HeatMapPlan"), |
|
48 |
// 球机客流量统计计划 |
|
49 |
EM_SCENE_NUMBERSTAT_PLAN(19, "NumberStatPlan"), |
|
50 |
// 金融目标检测,包括正常人脸、异常人脸、相邻人脸、头盔人脸等针对ATM场景特殊优化 |
|
51 |
EM_SCENE_ATMFD(20, "ATMFD"), |
|
52 |
// 高速交通事件检测 |
|
53 |
EM_SCENE_HIGHWAY(21, "Highway"), |
|
54 |
// 城市交通事件检测 |
|
55 |
EM_SCENE_CITY(22, "City"), |
|
56 |
// 民用简易跟踪 |
|
57 |
EM_SCENE_LETRACK(23, "LeTrack"), |
|
58 |
// 打靶相机 |
|
59 |
EM_SCENE_SCR(24, "SCR"), |
|
60 |
// 立体视觉(双目) |
|
61 |
EM_SCENE_STEREO_VISION(25, "StereoVision"), |
|
62 |
// 人体检测 |
|
63 |
EM_SCENE_HUMANDETECT(26, "HumanDetect"), |
|
64 |
// 人脸分析(同时支持目标检测、目标识别、人脸属性等综合型业务) |
|
65 |
EM_SCENE_FACEANALYSIS(27, "FaceAnalysis"), |
|
66 |
// X光检测 |
|
67 |
EM_SCENE_XRAY_DETECTION(28, "XRayDetection"), |
|
68 |
// 双目相机客流量统计 |
|
69 |
EM_SCENE_STEREO_NUMBER(29, "StereoNumber"), |
|
70 |
// 人群分布图 |
|
71 |
EM_SCENE_CROWD_DISTRI_MAP(30, "CrowdDistriMap"), |
|
72 |
// 目标检测(含人机非等物体) |
|
73 |
EM_SCENE_OBJECTDETECT(31, "ObjectDetect"), |
|
74 |
// IVSS目标检测 |
|
75 |
EM_SCENE_FACEATTRIBUTE(32, "FaceAttribute"), |
|
76 |
// IVSS目标识别 |
|
77 |
EM_SCENE_FACECOMPARE(33, "FaceCompare"), |
|
78 |
// 立体行为分析(典型场景ATM舱) |
|
79 |
EM_SCENE_STEREO_BEHAVIOR(34, "StereoBehavior"), |
|
80 |
// 智慧城管 |
|
81 |
EM_SCENE_INTELLICITYMANAGER(35, "IntelliCityMgr"), |
|
82 |
// 防护舱(ATM舱内) |
|
83 |
EM_SCENE_PROTECTIVECABIN(36, "ProtectiveCabin"), |
|
84 |
// 飞机行为检测 |
|
85 |
EM_SCENE_AIRPLANEDETECT(37, "AirplaneDetect"), |
|
86 |
// 人群态势(人群分布图服务) |
|
87 |
EM_SCENE_CROWDPOSTURE(38, "CrowdPosture"), |
|
88 |
// 打电话检测 |
|
89 |
EM_SCENE_PHONECALLDETECT(39, "PhoneCallDetect"), |
|
90 |
// 烟雾检测 |
|
91 |
EM_SCENE_SMOKEDETECTION(40, "SmokeDetection"), |
|
92 |
// 船只检测 |
|
93 |
EM_SCENE_BOATDETECTION(41, "BoatDetection"), |
|
94 |
// 吸烟检测 |
|
95 |
EM_SCENE_SMOKINGDETECT(42, "SmokingDetect"), |
|
96 |
// 水利监测 |
|
97 |
EM_SCENE_WATERMONITOR(43, "WaterMonitor"), |
|
98 |
// 生成图规则 |
|
99 |
EM_SCENE_GENERATEGRAPHDETECTION(44, "GenerateGraphDetection"), |
|
100 |
// 交通停车 |
|
101 |
EM_SCENE_TRAFFIC_PARK(45, "TrafficPark"), |
|
102 |
// 作业检测 |
|
103 |
EM_SCENE_OPERATEMONITOR(46, "OperateMonitor"), |
|
104 |
// 智慧零售大类 |
|
105 |
EM_SCENE_INTELLI_RETAIL(47, "IntelliRetail"), |
|
106 |
// 教育智慧课堂 |
|
107 |
EM_SCENE_CLASSROOM_ANALYSE(48, "ClassroomAnalyse"), |
|
108 |
// 特征向量提取大类 |
|
109 |
EM_SCENE_FEATURE_ABSTRACT(49, "FeatureAbstract"), |
|
110 |
// 人体检测 |
|
111 |
EM_SCENE_FACEBODY_DETECT(50, "FaceBodyDetect"), |
|
112 |
// 人体识别 |
|
113 |
EM_SCENE_FACEBODY_ANALYSE(51, "FaceBodyAnalyse"), |
|
114 |
// 车辆密度 |
|
115 |
EM_SCENE_VEHICLES_DISTRI(52, "VehiclesDistri"), |
|
116 |
// 智慧养殖检测 |
|
117 |
EM_SCENE_INTELLI_BREED(53, "IntelliBreed"), |
|
118 |
// |
|
119 |
EM_SCENE_INTELLI_PS(54, ""), |
|
120 |
// 电力检测 |
|
121 |
EM_SCENE_ELECTRIC_DETECT(55, "ElectricDetect"), |
|
122 |
// 雷检检测 |
|
123 |
EM_SCENE_RADAR_DETECT(56, "RadarDetect"), |
|
124 |
// 车位检测大类 |
|
125 |
EM_SCENE_PARKINGSPACE(57, "ParkingSpace"), |
|
126 |
// 智慧金融 |
|
127 |
EM_SCENE_INTELLI_FINANCE(58, "IntelliFinance"), |
|
128 |
// CrowdAbnormal |
|
129 |
EM_SCENE_CROWD_ABNORMAL(59, "CrowdAbnormal"), |
|
130 |
// 超温检测 |
|
131 |
EM_SCENE_ANATOMYTEMP_DETECT(60, "AnatomyTempDetect"), |
|
132 |
// 天气监控 |
|
133 |
EM_SCENE_WEATHER_MONITOR(61, "WeatherMonitor"), |
|
134 |
// 电梯门禁 |
|
135 |
EM_SCENE_ELEVATOR_ACCESS_CONTROL(62, "ElevatorAccessControl"), |
|
136 |
// 违章建筑 |
|
137 |
EM_SCENE_BREAK_RULE_BUILDING(63, "BreakRuleBuilding"), |
|
138 |
// 全景交通 |
|
139 |
EM_SCENE_PANORAMA_TRAFFIC(64, "PanoramaTraffic"), |
|
140 |
// 人像检测 |
|
141 |
EM_SCENE_PORTRAIT_DETECT(65, "PortraitDetect"), |
|
142 |
// 传送带阻塞 |
|
143 |
EM_SCENE_CONVEY_OR_BLOCK(66, "ConveyorBlock"), |
|
144 |
// 厨房有害动物检测 |
|
145 |
EM_SCENE_KITCHEN_ANIMAL(67, "KitchenAnimal"), |
|
146 |
// 万物检测 |
|
147 |
EM_SCENE_ALLSEEINGEYE(68, "AllSeeingEye"), |
|
148 |
// 驾驶行为分析 |
|
149 |
EM_SCENE_DRIVE(69, "Drive"), |
|
150 |
// 高级驾驶辅助系统 |
|
151 |
EM_SCENE_DRIVEASSISTANT(70, "DriveAssistant"), |
|
152 |
// 车内驾驶舱监测 |
|
153 |
EM_SCENE_INCABINMONITOR(71, "InCabinMonitor"), |
|
154 |
// 盲区检测 |
|
155 |
EM_SCENE_BLINDSPOTDETECTION(72, "BlindSpotDetection"); |
|
156 |
|
|
157 |
private int value; |
|
158 |
private String note; |
|
159 |
|
|
160 |
private EM_SCENE_TYPE(int givenValue, String note) { |
|
161 |
this.value = givenValue; |
|
162 |
this.note = note; |
|
163 |
} |
|
164 |
|
|
165 |
public String getNote() { |
|
166 |
return note; |
|
167 |
} |
|
168 |
|
|
169 |
public int getValue() { |
|
170 |
return value; |
|
171 |
} |
|
172 |
|
|
173 |
public static String getNoteByValue(int givenValue) { |
|
174 |
for (EM_SCENE_TYPE enumType : EM_SCENE_TYPE.values()) { |
|
175 |
if (givenValue == enumType.getValue()) { |
|
176 |
return enumType.getNote(); |
|
177 |
} |
|
178 |
} |
|
179 |
return null; |
|
180 |
} |
|
181 |
|
|
182 |
public static int getValueByNote(String givenNote) { |
|
183 |
for (EM_SCENE_TYPE enumType : EM_SCENE_TYPE.values()) { |
|
184 |
if (givenNote.equals(enumType.getNote())) { |
|
185 |
return enumType.getValue(); |
|
186 |
} |
|
187 |
} |
|
188 |
return -1; |
|
189 |
} |
|
190 |
|
|
191 |
} |