mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-12-23 19:11:14 +01:00
9ae839ad72
* add enum and change topic name * frontend renaming * docs * only display sublabel score if it it exists * remove debug print
26 lines
623 B
Python
26 lines
623 B
Python
from enum import Enum
|
|
from typing import TypedDict
|
|
|
|
from frigate.camera import CameraMetrics
|
|
from frigate.object_detection import ObjectDetectProcess
|
|
|
|
|
|
class StatsTrackingTypes(TypedDict):
|
|
camera_metrics: dict[str, CameraMetrics]
|
|
detectors: dict[str, ObjectDetectProcess]
|
|
started: int
|
|
latest_frigate_version: str
|
|
last_updated: int
|
|
processes: dict[str, int]
|
|
|
|
|
|
class ModelStatusTypesEnum(str, Enum):
|
|
not_downloaded = "not_downloaded"
|
|
downloading = "downloading"
|
|
downloaded = "downloaded"
|
|
error = "error"
|
|
|
|
|
|
class TrackedObjectUpdateTypesEnum(str, Enum):
|
|
description = "description"
|