From 0866a60a94c28a3a667c4ff38ab597187cd26e65 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Sun, 6 Apr 2025 22:54:57 -0500 Subject: [PATCH] config changes --- frigate/config/classification.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/frigate/config/classification.py b/frigate/config/classification.py index 4026106b2f..a892d83c31 100644 --- a/frigate/config/classification.py +++ b/frigate/config/classification.py @@ -19,6 +19,12 @@ class SemanticSearchModelEnum(str, Enum): jinav2 = "jinav2" +class LPRDeviceEnum(str, Enum): + AUTO = "AUTO" + GPU = "GPU" + CPU = "CPU" + + class BirdClassificationConfig(FrigateBaseModel): enabled: bool = Field(default=False, title="Enable bird classification.") threshold: float = Field( @@ -94,6 +100,10 @@ class CameraFaceRecognitionConfig(FrigateBaseModel): class LicensePlateRecognitionConfig(FrigateBaseModel): enabled: bool = Field(default=False, title="Enable license plate recognition.") + device: Optional[LPRDeviceEnum] = Field( + default=LPRDeviceEnum.AUTO, + title="The device used for license plate recognition.", + ) detection_threshold: float = Field( default=0.7, title="License plate object confidence score required to begin running recognition.",