Set bounds

This commit is contained in:
Nicolas Mowen 2024-11-21 17:08:39 -07:00
parent 2b7c40494e
commit 503244fdd7

View File

@ -24,7 +24,10 @@ class SemanticSearchConfig(FrigateBaseModel):
class FaceRecognitionConfig(FrigateBaseModel): class FaceRecognitionConfig(FrigateBaseModel):
enabled: bool = Field(default=False, title="Enable face recognition.") enabled: bool = Field(default=False, title="Enable face recognition.")
threshold: float = Field( 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( 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."