File size: 652 Bytes
a601b1d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
"""
Request models for API validation
"""

from typing import Optional
from pydantic import BaseModel, Field


class VideoUploadResponse(BaseModel):
    """Response model for video upload"""
    success: bool
    session_id: str
    filename: str
    size: str
    duration: str
    resolution: str
    fps: float
    frame_count: int


class AnalysisStartRequest(BaseModel):
    """Request model to start analysis"""
    session_id: str = Field(..., description="Session ID from upload")


class AnalysisStartResponse(BaseModel):
    """Response model for analysis start"""
    success: bool
    message: str
    session_id: str
    websocket_url: str