feat:新增基于YOLOv8的打架斗殴模型,支持上传视频识别以及摄像头识别

This commit is contained in:
2026-06-10 14:24:59 +08:00
parent ed5079a9dd
commit 77bd437fdb
4 changed files with 315 additions and 4 deletions

View File

@@ -37,3 +37,8 @@ class DetectionConfig(BaseModel):
model_id: str
confidence: float = Field(default=0.5, ge=0.1, le=1.0)
iou: float = Field(default=0.45, ge=0.1, le=0.9)
class VideoDetectionResult(BaseModel):
success: bool
message: str
data: Dict[str, Any]