From 7e0795be781c21a1d250796591302cae13b21134 Mon Sep 17 00:00:00 2001 From: 16337 <1633794139@qq.com> Date: Sat, 14 Feb 2026 09:01:20 +0800 Subject: [PATCH] =?UTF-8?q?refactor(aiot):=20=E7=AE=97=E6=B3=95=E6=8A=BD?= =?UTF-8?q?=E5=B8=A7=E9=A2=91=E7=8E=87=E6=94=B9=E4=B8=BA=E5=9B=BA=E5=AE=9A?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=EF=BC=8C=E4=B8=8D=E5=85=81=E8=AE=B8=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 离岗检测:固定 3帧/秒 - 周界入侵:固定 1帧/秒 - 从 paramSchema 中删除 frame_rate 参数 - 在算法描述中添加固定帧率说明 - 帧率配置统一在边缘端管理 Co-Authored-By: Claude Opus 4.6 --- .../iot/vmp/aiot/service/impl/AiAlgorithmServiceImpl.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/aiot/service/impl/AiAlgorithmServiceImpl.java b/src/main/java/com/genersoft/iot/vmp/aiot/service/impl/AiAlgorithmServiceImpl.java index 7f7cecb46..adb6a92ac 100644 --- a/src/main/java/com/genersoft/iot/vmp/aiot/service/impl/AiAlgorithmServiceImpl.java +++ b/src/main/java/com/genersoft/iot/vmp/aiot/service/impl/AiAlgorithmServiceImpl.java @@ -40,12 +40,12 @@ public class AiAlgorithmServiceImpl implements IAiAlgorithmService { static { // algoCode -> {algoName, targetClass, description, paramSchema} PRESET_ALGORITHMS.put("leave_post", new String[]{ - "离岗检测", "person", "检测人员是否在岗,支持工作时间段配置", - "{\"leave_countdown_sec\":{\"type\":\"int\",\"default\":300,\"min\":0},\"frame_rate\":{\"type\":\"float\",\"default\":3.0,\"options\":[10.0,5.0,3.0,1.0,0.33,0.1,0.03]},\"working_hours\":{\"type\":\"list\",\"default\":[]}}" + "离岗检测", "person", "检测人员是否在岗,支持工作时间段配置。算法抽帧频率:3帧/秒(固定)", + "{\"leave_countdown_sec\":{\"type\":\"int\",\"default\":300,\"min\":0},\"working_hours\":{\"type\":\"list\",\"default\":[]}}" }); PRESET_ALGORITHMS.put("intrusion", new String[]{ - "周界入侵检测", "person", "检测人员进入指定区域", - "{\"cooldown_seconds\":{\"type\":\"int\",\"default\":300,\"min\":0},\"confirm_seconds\":{\"type\":\"int\",\"default\":5,\"min\":1},\"frame_rate\":{\"type\":\"float\",\"default\":1.0,\"options\":[10.0,5.0,3.0,1.0,0.33,0.1,0.03]}}" + "周界入侵检测", "person", "检测人员进入指定区域。算法抽帧频率:1帧/秒(固定)", + "{\"cooldown_seconds\":{\"type\":\"int\",\"default\":300,\"min\":0},\"confirm_seconds\":{\"type\":\"int\",\"default\":5,\"min\":1}}" }); // 人群聚集检测暂时注释,边缘端未启用 // PRESET_ALGORITHMS.put("crowd_detection", new String[]{