Files
frigate/frigate/config/camera/mqtt.py
T

46 lines
1.3 KiB
Python
Raw Normal View History

from pydantic import Field
from ..base import FrigateBaseModel
__all__ = ["CameraMqttConfig"]
class CameraMqttConfig(FrigateBaseModel):
2026-02-27 09:55:36 -06:00
enabled: bool = Field(
default=True,
title="Send image",
description="Enable publishing image snapshots for objects to MQTT topics for this camera.",
)
timestamp: bool = Field(
default=True,
title="Add timestamp",
description="Overlay a timestamp on images published to MQTT.",
)
bounding_box: bool = Field(
default=True,
title="Add bounding box",
description="Draw bounding boxes on images published over MQTT.",
)
crop: bool = Field(
default=True,
title="Crop image",
description="Crop images published to MQTT to the detected object's bounding box.",
)
height: int = Field(
default=270,
title="Image height",
description="Height (pixels) to resize images published over MQTT.",
)
required_zones: list[str] = Field(
default_factory=list,
2026-02-27 09:55:36 -06:00
title="Required zones",
description="Zones that an object must enter for an MQTT image to be published.",
)
quality: int = Field(
default=70,
2026-02-27 09:55:36 -06:00
title="JPEG quality",
description="JPEG quality for images published to MQTT (0-100).",
ge=0,
le=100,
)