补充:火灾检测模型由基于YOLOv10的火灾烟雾检测模型改为复合模型[基于YOLOv8的火灾检测模型(单火焰检测)+YOLOv10-M,专用火灾烟雾模型]
This commit is contained in:
@@ -112,6 +112,21 @@
|
|||||||
<div class="stat-label">检测数量</div>
|
<div class="stat-label">检测数量</div>
|
||||||
<el-tag size="large" type="primary">{{ stats.total_detections }} 个</el-tag>
|
<el-tag size="large" type="primary">{{ stats.total_detections }} 个</el-tag>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- 复合检测统计 -->
|
||||||
|
<div v-if="stats.fire_count !== undefined" class="stat-item">
|
||||||
|
<div class="stat-label">火焰数量</div>
|
||||||
|
<el-tag size="large" type="danger">{{ stats.fire_count }} 个</el-tag>
|
||||||
|
</div>
|
||||||
|
<div v-if="stats.smoke_count !== undefined" class="stat-item">
|
||||||
|
<div class="stat-label">烟雾数量</div>
|
||||||
|
<el-tag size="large" type="warning">{{ stats.smoke_count }} 个</el-tag>
|
||||||
|
</div>
|
||||||
|
<div v-if="stats.suspected_fire !== undefined" class="stat-item">
|
||||||
|
<div class="stat-label">疑似火灾</div>
|
||||||
|
<el-tag size="large" :type="stats.suspected_fire ? 'danger' : 'success'">
|
||||||
|
{{ stats.suspected_fire_label || (stats.suspected_fire ? '是' : '否') }}
|
||||||
|
</el-tag>
|
||||||
|
</div>
|
||||||
<div class="stat-item">
|
<div class="stat-item">
|
||||||
<div class="stat-label">平均置信度</div>
|
<div class="stat-label">平均置信度</div>
|
||||||
<el-tag size="large" :type="getConfidenceType(stats.avg_confidence)">
|
<el-tag size="large" :type="getConfidenceType(stats.avg_confidence)">
|
||||||
@@ -310,6 +325,7 @@ const config = ref({
|
|||||||
model: props.models.length > 0 ? props.models[0].id : 'fire_detection',
|
model: props.models.length > 0 ? props.models[0].id : 'fire_detection',
|
||||||
confidence: 0.5,
|
confidence: 0.5,
|
||||||
iou: 0.45,
|
iou: 0.45,
|
||||||
|
composite: false,
|
||||||
algorithmConfig: {}
|
algorithmConfig: {}
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -392,6 +408,11 @@ const uploadUrl = computed(() => {
|
|||||||
iou: config.value.iou
|
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) {
|
if (config.value.algorithmConfig && Object.keys(config.value.algorithmConfig).length > 0) {
|
||||||
params.append('algorithm_config', JSON.stringify(config.value.algorithmConfig))
|
params.append('algorithm_config', JSON.stringify(config.value.algorithmConfig))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user