违停检测模型改为yolov8s,检测模式修改为手动框选禁停区域

This commit is contained in:
2026-06-15 09:22:07 +08:00
parent 18cfc9b16a
commit 4283fb1332
8 changed files with 492 additions and 358 deletions
+9 -2
View File
@@ -25,11 +25,18 @@ export const detectionApi = {
return api.get('/algorithms/config')
},
detectImage(formData, algorithmConfig = null) {
const params = {}
detectImage(formData, modelId, confidence, iou, algorithmConfig = null, regionPolygon = null) {
const params = {
model_id: modelId,
confidence,
iou
}
if (algorithmConfig) {
params.algorithm_config = JSON.stringify(algorithmConfig)
}
if (regionPolygon) {
params.region_polygon = JSON.stringify(regionPolygon)
}
return api.post('/detect/image', formData, {
headers: {