From 503244fdd7302e34442149a2ced10aeb4fbcca67 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Thu, 21 Nov 2024 17:08:39 -0700 Subject: [PATCH] Set bounds --- frigate/config/semantic_search.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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."