|
@@ -258,7 +258,7 @@ public class AiControl {
|
|
if (ai_info == null) {
|
|
if (ai_info == null) {
|
|
// 判断是否是车牌识别
|
|
// 判断是否是车牌识别
|
|
ai_info = JSON.parseObject(bodyAiAlarm.getReco_info()).getJSONArray("plates");
|
|
ai_info = JSON.parseObject(bodyAiAlarm.getReco_info()).getJSONArray("plates");
|
|
- arithmetic.add("2");
|
|
|
|
|
|
+ arithmetic.add("02");
|
|
is_plates = true;
|
|
is_plates = true;
|
|
}
|
|
}
|
|
// 判断是否为空数组
|
|
// 判断是否为空数组
|
|
@@ -270,29 +270,29 @@ public class AiControl {
|
|
JSONObject jsonObject = ai_info.getJSONObject(i);
|
|
JSONObject jsonObject = ai_info.getJSONObject(i);
|
|
// 车牌类型
|
|
// 车牌类型
|
|
if (is_plates) {
|
|
if (is_plates) {
|
|
- jsonObject.put("arithmetic", "2");
|
|
|
|
|
|
+ jsonObject.put("arithmetic", "02");
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
// 人脸类型
|
|
// 人脸类型
|
|
if (jsonObject.containsKey("msgid")) {
|
|
if (jsonObject.containsKey("msgid")) {
|
|
- arithmetic.add("1");
|
|
|
|
- jsonObject.put("arithmetic", "1");
|
|
|
|
|
|
+ arithmetic.add("01");
|
|
|
|
+ jsonObject.put("arithmetic", "01");
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
// 识别类型
|
|
// 识别类型
|
|
String id = jsonObject.getString("id");
|
|
String id = jsonObject.getString("id");
|
|
if (id.equals("DiaoChe")) {
|
|
if (id.equals("DiaoChe")) {
|
|
- arithmetic.add("6");
|
|
|
|
- jsonObject.put("arithmetic", "6");
|
|
|
|
|
|
+ arithmetic.add("06");
|
|
|
|
+ jsonObject.put("arithmetic", "06");
|
|
} else if (id.equals("TaDiao")) {
|
|
} else if (id.equals("TaDiao")) {
|
|
- arithmetic.add("7");
|
|
|
|
- jsonObject.put("arithmetic", "7");
|
|
|
|
|
|
+ arithmetic.add("07");
|
|
|
|
+ jsonObject.put("arithmetic", "07");
|
|
} else if (id.equals("fire")) {
|
|
} else if (id.equals("fire")) {
|
|
- arithmetic.add("8");
|
|
|
|
- jsonObject.put("arithmetic", "8");
|
|
|
|
|
|
+ arithmetic.add("08");
|
|
|
|
+ jsonObject.put("arithmetic", "08");
|
|
} else if (id.equals("ShiGongJiXie")) {
|
|
} else if (id.equals("ShiGongJiXie")) {
|
|
- arithmetic.add("9");
|
|
|
|
- jsonObject.put("arithmetic", "9");
|
|
|
|
|
|
+ arithmetic.add("09");
|
|
|
|
+ jsonObject.put("arithmetic", "09");
|
|
} else if (id.equals("DaoXianYiWu")) {
|
|
} else if (id.equals("DaoXianYiWu")) {
|
|
arithmetic.add("10");
|
|
arithmetic.add("10");
|
|
jsonObject.put("arithmetic", "10");
|
|
jsonObject.put("arithmetic", "10");
|
|
@@ -300,7 +300,6 @@ public class AiControl {
|
|
arithmetic.add("11");
|
|
arithmetic.add("11");
|
|
jsonObject.put("arithmetic", "11");
|
|
jsonObject.put("arithmetic", "11");
|
|
}
|
|
}
|
|
-
|
|
|
|
}
|
|
}
|
|
logger.info("arithmetic distinctArray:{}", arithmetic);
|
|
logger.info("arithmetic distinctArray:{}", arithmetic);
|
|
// 算法存储的数据去除重复项
|
|
// 算法存储的数据去除重复项
|