2024-10-07 23:30:45 +03:00
|
|
|
from enum import Enum
|
2024-09-27 15:53:23 +03:00
|
|
|
from typing import TypedDict
|
2022-04-16 18:40:04 +03:00
|
|
|
|
2024-09-27 15:53:23 +03:00
|
|
|
from frigate.camera import CameraMetrics
|
2025-01-10 22:44:30 +03:00
|
|
|
from frigate.data_processing.types import DataProcessorMetrics
|
2025-04-15 16:55:38 +03:00
|
|
|
from frigate.object_detection.base import ObjectDetectProcess
|
2022-04-16 18:40:04 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
class StatsTrackingTypes(TypedDict):
|
2024-09-27 15:53:23 +03:00
|
|
|
camera_metrics: dict[str, CameraMetrics]
|
2025-01-10 22:44:30 +03:00
|
|
|
embeddings_metrics: DataProcessorMetrics | None
|
2022-11-04 05:23:09 +03:00
|
|
|
detectors: dict[str, ObjectDetectProcess]
|
2022-04-16 18:40:04 +03:00
|
|
|
started: int
|
|
|
|
|
latest_frigate_version: str
|
2023-01-27 15:20:41 +03:00
|
|
|
last_updated: int
|
2023-05-05 01:58:59 +03:00
|
|
|
processes: dict[str, int]
|
2024-10-07 23:30:45 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
class ModelStatusTypesEnum(str, Enum):
|
|
|
|
|
not_downloaded = "not_downloaded"
|
|
|
|
|
downloading = "downloading"
|
|
|
|
|
downloaded = "downloaded"
|
|
|
|
|
error = "error"
|
2025-06-05 18:13:12 +03:00
|
|
|
training = "training"
|
|
|
|
|
complete = "complete"
|
2024-11-18 21:26:44 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
class TrackedObjectUpdateTypesEnum(str, Enum):
|
|
|
|
|
description = "description"
|
2025-04-29 01:43:03 +03:00
|
|
|
face = "face"
|
|
|
|
|
lpr = "lpr"
|