mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-27 09:07:41 +03:00
Add 'device' key to semantic search and face recognition. Modify LPR device key.
This commit is contained in:
parent
5a49d1f73c
commit
cb03489a97
@ -130,6 +130,11 @@ class SemanticSearchConfig(FrigateBaseModel):
|
||||
model_size: str = Field(
|
||||
default="small", title="The size of the embeddings model used."
|
||||
)
|
||||
device: str = Field(
|
||||
default="CPU",
|
||||
title="The device to use for license plate recognition.",
|
||||
description="Use 'cpu' or 'gpu', to target a specific gpu use: '0', '1', etc.",
|
||||
)
|
||||
|
||||
|
||||
class TriggerConfig(FrigateBaseModel):
|
||||
@ -196,6 +201,11 @@ class FaceRecognitionConfig(FrigateBaseModel):
|
||||
blur_confidence_filter: bool = Field(
|
||||
default=True, title="Apply blur quality filter to face confidence."
|
||||
)
|
||||
device: str = Field(
|
||||
default="CPU",
|
||||
title="The device to use for license plate recognition.",
|
||||
description="Use 'cpu' or 'gpu', to target a specific gpu use: '0', '1', etc.",
|
||||
)
|
||||
|
||||
|
||||
class CameraFaceRecognitionConfig(FrigateBaseModel):
|
||||
@ -209,10 +219,6 @@ class CameraFaceRecognitionConfig(FrigateBaseModel):
|
||||
|
||||
class LicensePlateRecognitionConfig(FrigateBaseModel):
|
||||
enabled: bool = Field(default=False, title="Enable license plate recognition.")
|
||||
device: Optional[EnrichmentsDeviceEnum] = Field(
|
||||
default=EnrichmentsDeviceEnum.CPU,
|
||||
title="The device used for license plate recognition.",
|
||||
)
|
||||
model_size: str = Field(
|
||||
default="small", title="The size of the embeddings model used."
|
||||
)
|
||||
@ -258,6 +264,11 @@ class LicensePlateRecognitionConfig(FrigateBaseModel):
|
||||
default=False,
|
||||
title="Save plates captured for LPR for debugging purposes.",
|
||||
)
|
||||
device: str = Field(
|
||||
default="CPU",
|
||||
title="The device to use for license plate recognition.",
|
||||
description="Use 'cpu' or 'gpu', to target a specific gpu use: '0', '1', etc.",
|
||||
)
|
||||
|
||||
|
||||
class CameraLicensePlateRecognitionConfig(FrigateBaseModel):
|
||||
@ -278,4 +289,4 @@ class CameraLicensePlateRecognitionConfig(FrigateBaseModel):
|
||||
le=10,
|
||||
)
|
||||
|
||||
model_config = ConfigDict(extra="forbid", protected_namespaces=())
|
||||
model_config = ConfigDict(extra="forbid", protected_namespaces=())
|
||||
Loading…
Reference in New Issue
Block a user