mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-07-30 13:48:07 +02:00
config options
This commit is contained in:
parent
6cb385f6a7
commit
e9fae3fc58
@ -19,6 +19,11 @@ class SemanticSearchModelEnum(str, Enum):
|
|||||||
jinav2 = "jinav2"
|
jinav2 = "jinav2"
|
||||||
|
|
||||||
|
|
||||||
|
class CameraTypeEnum(str, Enum):
|
||||||
|
standard = "standard"
|
||||||
|
lpr = "lpr"
|
||||||
|
|
||||||
|
|
||||||
class BirdClassificationConfig(FrigateBaseModel):
|
class BirdClassificationConfig(FrigateBaseModel):
|
||||||
enabled: bool = Field(default=False, title="Enable bird classification.")
|
enabled: bool = Field(default=False, title="Enable bird classification.")
|
||||||
threshold: float = Field(
|
threshold: float = Field(
|
||||||
@ -127,6 +132,11 @@ class LicensePlateRecognitionConfig(FrigateBaseModel):
|
|||||||
|
|
||||||
class CameraLicensePlateRecognitionConfig(FrigateBaseModel):
|
class CameraLicensePlateRecognitionConfig(FrigateBaseModel):
|
||||||
enabled: bool = Field(default=False, title="Enable license plate recognition.")
|
enabled: bool = Field(default=False, title="Enable license plate recognition.")
|
||||||
|
camera_type: str = Field(default=CameraTypeEnum.standard, title="Camera Type")
|
||||||
|
expire_time: int = Field(
|
||||||
|
default=3,
|
||||||
|
title="Expire plates not seen after number of seconds (for dedicated LPR cameras only).",
|
||||||
|
)
|
||||||
min_area: int = Field(
|
min_area: int = Field(
|
||||||
default=1000,
|
default=1000,
|
||||||
title="Minimum area of license plate to begin running recognition.",
|
title="Minimum area of license plate to begin running recognition.",
|
||||||
|
Loading…
Reference in New Issue
Block a user