From a5ccfc5468543134683c6ab82dbb94b747ba7b8e Mon Sep 17 00:00:00 2001
From: lixiaolong <702156524@qq.com>
Date: Tue, 18 Aug 2026 16:03:02 +0800
Subject: [PATCH] =?UTF-8?q?feat(flow):=20=E5=B0=86=E5=AA=92=E4=BD=93?=
=?UTF-8?q?=E5=88=86=E6=9E=90=E5=8F=82=E6=95=B0=E4=BB=8E=E6=8A=BD=E5=8F=96?=
=?UTF-8?q?=E5=B8=A7=E6=95=B0=E6=94=B9=E4=B8=BA=E9=87=87=E6=A0=B7=E5=B8=A7?=
=?UTF-8?q?=E7=8E=87?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 将 analysisTuning 配置中的 maxFrames 参数替换为 sampleFps 参数
- 更新 MediaAnalysisParams 组件中的表单项标签为"采样帧率(帧/秒)"
- 修改滑块控件绑定到 formData.analysisTuning.sampleFps 属性
- 更新预设配置中的 FAST、AUTO、ACCURATE 模式参数
- 调整归一化存储调优逻辑以支持新的 sampleFps 参数范围
- 更新采样帧率参数的有效范围为 0.25 到 6 帧/秒
---
.../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 84690f8..d40ffd6 100644
--- a/src/views/flow/components/params/MediaAnalysisParams.vue
+++ b/src/views/flow/components/params/MediaAnalysisParams.vue
@@ -100,8 +100,8 @@
当前模式参数
恢复默认
-
-
+
+
@@ -140,9 +140,9 @@ const mediaCascaderRef = ref()
const quoteOptions = ref([])
const advancedSections = ref([])
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 },
}
const formData = reactive({
profileCode: '',
@@ -272,7 +272,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 29ff724..d5fcb8c 100644
--- a/src/views/flow/config.js
+++ b/src/views/flow/config.js
@@ -552,7 +552,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: [