Files
frigate/frigate/api/defs/request/classification_body.py
T

32 lines
1006 B
Python
Raw Normal View History

from typing import Dict, List, Tuple
2025-10-08 13:55:38 -06:00
from pydantic import BaseModel, Field
class RenameFaceBody(BaseModel):
new_name: str = Field(description="New name for the face")
2025-05-27 10:26:00 -05:00
class AudioTranscriptionBody(BaseModel):
event_id: str = Field(description="ID of the event to transcribe audio for")
2025-10-08 13:55:38 -06:00
class DeleteFaceImagesBody(BaseModel):
ids: List[str] = Field(
description="List of image filenames to delete from the face folder"
)
class GenerateStateExamplesBody(BaseModel):
model_name: str = Field(description="Name of the classification model")
cameras: Dict[str, Tuple[float, float, float, float]] = Field(
description="Dictionary mapping camera names to normalized crop coordinates in [x1, y1, x2, y2] format (values 0-1)"
)
class GenerateObjectExamplesBody(BaseModel):
model_name: str = Field(description="Name of the classification model")
label: str = Field(
description="Object label to collect examples for (e.g., 'person', 'car')"
)