mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-10 18:43:09 +03:00
tweaks
This commit is contained in:
parent
4217414e1d
commit
ae4b5f015e
@ -20,7 +20,8 @@ class ZoneConfig(BaseModel):
|
||||
)
|
||||
enabled: bool = Field(
|
||||
default=True,
|
||||
title="Whether this zone is active. Disabled zones are ignored at runtime.",
|
||||
title="Enabled",
|
||||
description="Enable or disable this zone. Disabled zones are ignored at runtime.",
|
||||
)
|
||||
enabled_in_config: Optional[bool] = Field(
|
||||
default=None, title="Keep track of original state of zone."
|
||||
|
||||
@ -46,6 +46,7 @@ from .camera.birdseye import BirdseyeConfig
|
||||
from .camera.detect import DetectConfig
|
||||
from .camera.ffmpeg import FfmpegConfig
|
||||
from .camera.genai import GenAIConfig, GenAIRoleEnum
|
||||
from .camera.mask import ObjectMaskConfig
|
||||
from .camera.motion import MotionConfig
|
||||
from .camera.notification import NotificationConfig
|
||||
from .camera.objects import FilterConfig, ObjectConfig
|
||||
@ -798,8 +799,6 @@ class FrigateConfig(FrigateBaseModel):
|
||||
coords, camera_config.frame_shape
|
||||
)
|
||||
# Create a new ObjectMaskConfig with raw_coordinates set
|
||||
from frigate.config.camera.mask import ObjectMaskConfig
|
||||
|
||||
processed_global_masks[mask_id] = ObjectMaskConfig(
|
||||
friendly_name=mask_config.friendly_name,
|
||||
enabled=mask_config.enabled,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user