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

30 lines
968 B
Python
Raw Normal View History

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):
2026-07-06 09:28:02 -08:00
ids: list[str] = Field(
2025-10-08 13:55:38 -06:00
description="List of image filenames to delete from the face folder"
)
class GenerateStateExamplesBody(BaseModel):
model_name: str = Field(description="Name of the classification model")
2026-07-06 09:28:02 -08:00
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')"
)