diff --git a/frigate/config/semantic_search.py b/frigate/config/semantic_search.py index d95468f09..f0eb5d98c 100644 --- a/frigate/config/semantic_search.py +++ b/frigate/config/semantic_search.py @@ -24,7 +24,10 @@ class SemanticSearchConfig(FrigateBaseModel): class FaceRecognitionConfig(FrigateBaseModel): enabled: bool = Field(default=False, title="Enable face recognition.") threshold: float = Field( - default=170, title="minimum face distance score required to be considered a match." + default=170, + title="minimum face distance score required to be considered a match.", + gt=0.0, + le=1.0, ) min_area: int = Field( default=500, title="Min area of face box to consider running face recognition."