diff --git a/apps/web/src/components/ImageDetection.vue b/apps/web/src/components/ImageDetection.vue index 44c757f..caffa1d 100644 --- a/apps/web/src/components/ImageDetection.vue +++ b/apps/web/src/components/ImageDetection.vue @@ -112,6 +112,21 @@
检测数量
{{ stats.total_detections }} 个 + +
+
火焰数量
+ {{ stats.fire_count }} 个 +
+
+
烟雾数量
+ {{ stats.smoke_count }} 个 +
+
+
疑似火灾
+ + {{ stats.suspected_fire_label || (stats.suspected_fire ? '是' : '否') }} + +
平均置信度
@@ -310,6 +325,7 @@ const config = ref({ model: props.models.length > 0 ? props.models[0].id : 'fire_detection', confidence: 0.5, iou: 0.45, + composite: false, algorithmConfig: {} }) @@ -392,6 +408,11 @@ const uploadUrl = computed(() => { iou: config.value.iou }) + // 添加复合检测参数(火灾检测模型时) + if (config.value.composite && config.value.model === 'fire_detection') { + params.append('composite', 'true') + } + if (config.value.algorithmConfig && Object.keys(config.value.algorithmConfig).length > 0) { params.append('algorithm_config', JSON.stringify(config.value.algorithmConfig)) }