blakeblackshear.frigate/frigate/track/__init__.py

16 lines
350 B
Python
Raw Normal View History

2023-05-31 16:12:43 +02:00
from abc import ABC, abstractmethod
from frigate.config import DetectConfig
class ObjectTracker(ABC):
@abstractmethod
def __init__(self, config: DetectConfig) -> None:
2023-05-31 16:12:43 +02:00
pass
@abstractmethod
def match_and_update(
self, frame_name: str, frame_time: float, detections: list[dict[str, any]]
) -> None:
2023-05-31 16:12:43 +02:00
pass