frigate/frigate/track/__init__.py

20 lines
419 B
Python
Raw Normal View History

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