功能:前端支持车辆违停和车辆拥堵算法
- data.ts: ALERT_TYPE_OPTIONS新增车辆违停/拥堵选项 - AlgorithmParamEditor.vue: 新增违停和拥堵参数中英文名称及说明映射 - RoiAlgorithmBind.vue: 新增车辆算法帧率映射(1帧/秒) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -7,6 +7,8 @@ import { getRangePickerDefaultProps } from '#/utils';
|
|||||||
export const ALERT_TYPE_OPTIONS = [
|
export const ALERT_TYPE_OPTIONS = [
|
||||||
{ label: '离岗检测', value: 'leave_post' },
|
{ label: '离岗检测', value: 'leave_post' },
|
||||||
{ label: '周界入侵', value: 'intrusion' },
|
{ label: '周界入侵', value: 'intrusion' },
|
||||||
|
{ label: '车辆违停', value: 'illegal_parking' },
|
||||||
|
{ label: '车辆拥堵', value: 'vehicle_congestion' },
|
||||||
];
|
];
|
||||||
|
|
||||||
/** 告警状态选项 */
|
/** 告警状态选项 */
|
||||||
|
|||||||
@@ -55,6 +55,14 @@ const paramNameMap: Record<string, string> = {
|
|||||||
detection_interval: '检测间隔(秒)',
|
detection_interval: '检测间隔(秒)',
|
||||||
enable_tracking: '启用跟踪',
|
enable_tracking: '启用跟踪',
|
||||||
tracking_timeout: '跟踪超时(秒)',
|
tracking_timeout: '跟踪超时(秒)',
|
||||||
|
// 车辆违停参数
|
||||||
|
confirm_vehicle_sec: '车辆确认时间(秒)',
|
||||||
|
parking_countdown_sec: '违停倒计时(秒)',
|
||||||
|
confirm_clear_sec: '消失确认时间(秒)',
|
||||||
|
cooldown_sec: '告警冷却期(秒)',
|
||||||
|
// 车辆拥堵参数
|
||||||
|
count_threshold: '车辆数量阈值',
|
||||||
|
confirm_congestion_sec: '拥堵确认时间(秒)',
|
||||||
};
|
};
|
||||||
|
|
||||||
// 参数说明映射
|
// 参数说明映射
|
||||||
@@ -66,6 +74,14 @@ const paramDescMap: Record<string, string> = {
|
|||||||
confirm_seconds: '持续检测到人达到该时间后触发告警,持续无人达到该时间后自动结束告警(向后兼容参数)',
|
confirm_seconds: '持续检测到人达到该时间后触发告警,持续无人达到该时间后自动结束告警(向后兼容参数)',
|
||||||
confirm_intrusion_seconds: '入侵确认:持续检测到人达到该时间后触发告警',
|
confirm_intrusion_seconds: '入侵确认:持续检测到人达到该时间后触发告警',
|
||||||
confirm_clear_seconds: '消失确认:持续无人达到该时间后自动结束告警。期间短暂有人(<5秒)不影响倒计时',
|
confirm_clear_seconds: '消失确认:持续无人达到该时间后自动结束告警。期间短暂有人(<5秒)不影响倒计时',
|
||||||
|
// 车辆违停参数说明
|
||||||
|
confirm_vehicle_sec: '确认车辆停留的时间,超过该时间开始违停倒计时',
|
||||||
|
parking_countdown_sec: '确认有车后的违停等待时间,超过该时间触发违停告警',
|
||||||
|
confirm_clear_sec: '车辆离开后,持续无车达到该时间后自动结束告警',
|
||||||
|
cooldown_sec: '触发告警后,多少秒内不再重复告警',
|
||||||
|
// 车辆拥堵参数说明
|
||||||
|
count_threshold: '区域内车辆数量达到该值时判定为拥堵',
|
||||||
|
confirm_congestion_sec: '车辆数持续超过阈值达到该时间后触发拥堵告警',
|
||||||
};
|
};
|
||||||
|
|
||||||
// 获取参数的中文名称
|
// 获取参数的中文名称
|
||||||
|
|||||||
@@ -136,6 +136,8 @@ function getAlgoFrameRate(algoCode: string): string {
|
|||||||
const frameRates: Record<string, string> = {
|
const frameRates: Record<string, string> = {
|
||||||
leave_post: '3帧/秒',
|
leave_post: '3帧/秒',
|
||||||
intrusion: '1帧/秒',
|
intrusion: '1帧/秒',
|
||||||
|
illegal_parking: '1帧/秒',
|
||||||
|
vehicle_congestion: '1帧/秒',
|
||||||
};
|
};
|
||||||
return frameRates[algoCode] || '5帧/秒';
|
return frameRates[algoCode] || '5帧/秒';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user