refactor(aiot): 算法抽帧频率改为固定展示,不允许用户配置
- 离岗检测:固定 3帧/秒 - 周界入侵:固定 1帧/秒 - 从 paramSchema 中删除 frame_rate 参数 - 在算法描述中添加固定帧率说明 - 帧率配置统一在边缘端管理 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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[]{
|
||||
|
||||
Reference in New Issue
Block a user