LPR device selection (#17592)

* config changes

* use device

* docs

* docs

* reset state

* remove auto

* use device

* docs
This commit is contained in:
Josh Hawkins
2025-04-07 19:30:08 -06:00
committed by GitHub
parent cb27bdb2f7
commit 921908fe33
5 changed files with 27 additions and 7 deletions
+9
View File
@@ -19,6 +19,11 @@ class SemanticSearchModelEnum(str, Enum):
jinav2 = "jinav2"
class LPRDeviceEnum(str, Enum):
GPU = "GPU"
CPU = "CPU"
class BirdClassificationConfig(FrigateBaseModel):
enabled: bool = Field(default=False, title="Enable bird classification.")
threshold: float = Field(
@@ -94,6 +99,10 @@ class CameraFaceRecognitionConfig(FrigateBaseModel):
class LicensePlateRecognitionConfig(FrigateBaseModel):
enabled: bool = Field(default=False, title="Enable license plate recognition.")
device: Optional[LPRDeviceEnum] = Field(
default=LPRDeviceEnum.CPU,
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.",