From 9be93340a71d634a6474dad7cef4d8300f2786e7 Mon Sep 17 00:00:00 2001 From: zhanjiesheng <210466500@qq.com> Date: Wed, 10 Jun 2026 15:05:48 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=EF=BC=9A=E7=81=AB=E7=81=BE?= =?UTF-8?q?=E6=A3=80=E6=B5=8B=E6=A8=A1=E5=9E=8B=E7=94=B1=E5=9F=BA=E4=BA=8E?= =?UTF-8?q?YOLOv10=E7=9A=84=E7=81=AB=E7=81=BE=E7=83=9F=E9=9B=BE=E6=A3=80?= =?UTF-8?q?=E6=B5=8B=E6=A8=A1=E5=9E=8B=E6=94=B9=E4=B8=BA=E5=A4=8D=E5=90=88?= =?UTF-8?q?=E6=A8=A1=E5=9E=8B[=E5=9F=BA=E4=BA=8EYOLOv8=E7=9A=84=E7=81=AB?= =?UTF-8?q?=E7=81=BE=E6=A3=80=E6=B5=8B=E6=A8=A1=E5=9E=8B=EF=BC=88=E5=8D=95?= =?UTF-8?q?=E7=81=AB=E7=84=B0=E6=A3=80=E6=B5=8B=EF=BC=89=EF=BC=8BYOLOv10-M?= =?UTF-8?q?=EF=BC=8C=E4=B8=93=E7=94=A8=E7=81=AB=E7=81=BE=E7=83=9F=E9=9B=BE?= =?UTF-8?q?=E6=A8=A1=E5=9E=8B]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web/src/components/ImageDetection.vue | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) 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)) }