From 74dceedbdc795e9fb01d0a91b8092f1cf14d1753 Mon Sep 17 00:00:00 2001
From: zhanghao <774378400@qq.com>
Date: Tue, 18 Aug 2026 16:04:17 +0800
Subject: [PATCH] Merge branch 'lxl-dev' of
http://192.168.28.10:18088/SmartBench/CMVR-IOT-UI into lxl-dev
---
.../flow/components/params/MediaAnalysisParams.vue | 12 ++++++------
src/views/flow/config.js | 2 +-
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/views/flow/components/params/MediaAnalysisParams.vue b/src/views/flow/components/params/MediaAnalysisParams.vue
index f83027c..e8674c8 100644
--- a/src/views/flow/components/params/MediaAnalysisParams.vue
+++ b/src/views/flow/components/params/MediaAnalysisParams.vue
@@ -117,8 +117,8 @@
当前模式参数
恢复默认
-
-
+
+
@@ -171,9 +171,9 @@ const advancedSections = ref([])
* fallbackToAccurate 仅 AUTO 模式有意义,表示快速分析置信度不足时是否升级为精确分析。
*/
const analysisPresets = {
- FAST: { maxFrames: 6, maxWidth: 896, confidenceThreshold: 0.7, fallbackToAccurate: false },
- AUTO: { maxFrames: 8, maxWidth: 960, confidenceThreshold: 0.75, fallbackToAccurate: true },
- ACCURATE: { maxFrames: 10, maxWidth: 1120, confidenceThreshold: 0.8, fallbackToAccurate: false },
+ FAST: { sampleFps: 1, maxWidth: 896, confidenceThreshold: 0.7, fallbackToAccurate: false },
+ AUTO: { sampleFps: 2, maxWidth: 960, confidenceThreshold: 0.75, fallbackToAccurate: true },
+ ACCURATE: { sampleFps: 3, maxWidth: 1120, confidenceThreshold: 0.8, fallbackToAccurate: false },
}
/**
* 表单使用一个稳定的 reactive 对象,initData 只更新字段而不替换对象,保证 Element Plus
@@ -340,7 +340,7 @@ const clamp = (value, minimum, maximum, fallback) => {
const normalizeStoredTuning = (value, preset) => {
const stored = parseStoredTuning(value)
return {
- maxFrames: Math.round(clamp(stored.maxFrames, 2, 16, preset.maxFrames)),
+ sampleFps: Math.round(clamp(stored.sampleFps, 0.25, 6, preset.sampleFps) * 100) / 100,
maxWidth: Math.round(clamp(stored.maxWidth, 640, 1280, preset.maxWidth)),
confidenceThreshold: clamp(stored.confidenceThreshold, 0.5, 0.95, preset.confidenceThreshold),
fallbackToAccurate: typeof stored.fallbackToAccurate === 'boolean'
diff --git a/src/views/flow/config.js b/src/views/flow/config.js
index 26d6e38..cfdda8d 100644
--- a/src/views/flow/config.js
+++ b/src/views/flow/config.js
@@ -556,7 +556,7 @@ function handler(params) {
{ name: "videoUrl", type: "quote", input: "", quote: "", required: true, disabled: true },
{ name: "instruction", type: "input", input: "", required: true, disabled: true },
{ name: "analysisMode", type: "input", input: "AUTO", required: false, disabled: true },
- { name: "analysisTuning", type: "input", input: { maxFrames: 8, maxWidth: 960, confidenceThreshold: 0.75, fallbackToAccurate: true }, required: false, disabled: true },
+ { name: "analysisTuning", type: "input", input: { sampleFps: 2, maxWidth: 960, confidenceThreshold: 0.75, fallbackToAccurate: true }, required: false, disabled: true },
],
outputType: "json",
outputParams: [