chore: 移除人群聚集检测算法预置
- SQL初始化脚本移除 crowd_detection - Java预置算法移除 crowd_detection - 与边缘端保持一致,仅保留2个算法 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -34,6 +34,7 @@ public class AiAlgorithmServiceImpl implements IAiAlgorithmService {
|
||||
|
||||
/**
|
||||
* 预置算法定义,启动时自动校正数据库中的乱码数据
|
||||
* 注意:仅包含边缘端实际实现的算法
|
||||
*/
|
||||
private static final Map<String, String[]> PRESET_ALGORITHMS = new HashMap<>();
|
||||
static {
|
||||
@@ -46,10 +47,11 @@ public class AiAlgorithmServiceImpl implements IAiAlgorithmService {
|
||||
"周界入侵检测", "person", "检测人员进入指定区域",
|
||||
"{\"cooldown_seconds\":{\"type\":\"int\",\"default\":120,\"min\":0},\"confirm_seconds\":{\"type\":\"int\",\"default\":5,\"min\":1}}"
|
||||
});
|
||||
PRESET_ALGORITHMS.put("crowd_detection", new String[]{
|
||||
"人群聚集检测", "person", "检测区域内人员数量是否超过阈值",
|
||||
"{\"max_count\":{\"type\":\"int\",\"default\":10,\"min\":1},\"cooldown_seconds\":{\"type\":\"int\",\"default\":300,\"min\":0}}"
|
||||
});
|
||||
// 人群聚集检测暂时注释,边缘端未启用
|
||||
// PRESET_ALGORITHMS.put("crowd_detection", new String[]{
|
||||
// "人群聚集检测", "person", "检测区域内人员数量是否超过阈值",
|
||||
// "{\"max_count\":{\"type\":\"int\",\"default\":10,\"min\":1},\"cooldown_seconds\":{\"type\":\"int\",\"default\":300,\"min\":0}}"
|
||||
// });
|
||||
}
|
||||
|
||||
@PostConstruct
|
||||
|
||||
Reference in New Issue
Block a user