预警图片检测触发修复

This commit is contained in:
2026-06-16 16:58:24 +08:00
parent 0158b41712
commit 7396889f32
4 changed files with 15 additions and 315 deletions
+2 -1
View File
@@ -130,7 +130,8 @@ async def detect_image(
"detections": result['detections'],
"image_base64": img_base64,
"stats": result['stats'],
"alerts": result.get('alerts', []),
"alerts": result.get('alerts', []) or result.get('alert_events', []),
"alert_events": result.get('alert_events', []),
"behavior_stats": result.get('behavior_stats', {})
}
)