Object attribute classification (#19205)

* Add enum for type of classification for objects

* Update recognized license plate topic to be used as attribute updater

* Update attribute for attribute type object classification

* Cleanup
This commit is contained in:
Nicolas Mowen
2025-08-16 10:20:33 -05:00
committed by Blake Blackshear
parent 55e5a55fa2
commit d071325ca7
6 changed files with 49 additions and 22 deletions
+9
View File
@@ -34,6 +34,11 @@ class TriggerAction(str, Enum):
NOTIFICATION = "notification"
class ObjectClassificationType(str, Enum):
sub_label = "sub_label"
attribute = "attribute"
class AudioTranscriptionConfig(FrigateBaseModel):
enabled: bool = Field(default=False, title="Enable audio transcription.")
language: str = Field(
@@ -88,6 +93,10 @@ class CustomClassificationStateConfig(FrigateBaseModel):
class CustomClassificationObjectConfig(FrigateBaseModel):
objects: list[str] = Field(title="Object types to classify.")
classification_type: ObjectClassificationType = Field(
default=ObjectClassificationType.sub_label,
title="Type of classification that is applied.",
)
class CustomClassificationConfig(FrigateBaseModel):