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: [