mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-15 15:45:27 +03:00
config
This commit is contained in:
parent
2ba92ebabe
commit
b5ea5df3a5
@ -4,7 +4,11 @@ from pydantic import Field
|
|||||||
|
|
||||||
from .base import FrigateBaseModel
|
from .base import FrigateBaseModel
|
||||||
|
|
||||||
__all__ = ["FaceRecognitionConfig", "SemanticSearchConfig"]
|
__all__ = [
|
||||||
|
"FaceRecognitionConfig",
|
||||||
|
"SemanticSearchConfig",
|
||||||
|
"LicensePlateRecognitionConfig",
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
class SemanticSearchConfig(FrigateBaseModel):
|
class SemanticSearchConfig(FrigateBaseModel):
|
||||||
@ -25,3 +29,15 @@ class FaceRecognitionConfig(FrigateBaseModel):
|
|||||||
min_area: int = Field(
|
min_area: int = Field(
|
||||||
default=500, title="Min area of face box to consider running face recognition."
|
default=500, title="Min area of face box to consider running face recognition."
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
class LicensePlateRecognitionConfig(FrigateBaseModel):
|
||||||
|
enabled: bool = Field(default=False, title="Enable license plate recognition.")
|
||||||
|
threshold: float = Field(
|
||||||
|
default=0.9,
|
||||||
|
title="License plate confidence score required to be added to the object as a sub label.",
|
||||||
|
)
|
||||||
|
min_area: int = Field(
|
||||||
|
default=500,
|
||||||
|
title="Min area of license plate to consider running license plate recognition.",
|
||||||
|
)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user