mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-05 13:07:44 +03:00
Add to type enum
This commit is contained in:
parent
9b840c3def
commit
e15924606b
@ -24,6 +24,7 @@ from frigate.comms.event_metadata_updater import (
|
||||
)
|
||||
from frigate.const import CLIPS_DIR
|
||||
from frigate.embeddings.onnx.lpr_embedding import LPR_EMBEDDING_SIZE
|
||||
from frigate.types import TrackedObjectUpdateTypesEnum
|
||||
from frigate.util.builtin import EventsPerSecond
|
||||
from frigate.util.image import area
|
||||
|
||||
@ -1514,7 +1515,7 @@ class LicensePlateProcessingMixin:
|
||||
self.requestor.send_data(
|
||||
"tracked_object_update",
|
||||
json.dumps({
|
||||
"type": "lpr",
|
||||
"type": TrackedObjectUpdateTypesEnum.lpr,
|
||||
"name": sub_label,
|
||||
"plate": top_plate,
|
||||
"score": avg_confidence,
|
||||
|
||||
@ -26,6 +26,7 @@ from frigate.data_processing.common.face.model import (
|
||||
FaceNetRecognizer,
|
||||
FaceRecognizer,
|
||||
)
|
||||
from frigate.types import TrackedObjectUpdateTypesEnum
|
||||
from frigate.util.builtin import EventsPerSecond
|
||||
from frigate.util.image import area
|
||||
|
||||
@ -295,7 +296,7 @@ class FaceRealTimeProcessor(RealTimeProcessorApi):
|
||||
self.requestor.send_data(
|
||||
"tracked_object_update",
|
||||
json.dumps({
|
||||
"type": "face",
|
||||
"type": TrackedObjectUpdateTypesEnum.face,
|
||||
"name": weighted_sub_label,
|
||||
"score": weighted_score,
|
||||
"id": id,
|
||||
|
||||
@ -25,3 +25,5 @@ class ModelStatusTypesEnum(str, Enum):
|
||||
|
||||
class TrackedObjectUpdateTypesEnum(str, Enum):
|
||||
description = "description"
|
||||
face = "face"
|
||||
lpr = "lpr"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user