mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-09-23 17:52:05 +02:00
* Enable mypy for track * WIP cleaning up tracked object * Fix tracked object typing * Fix typing and imports of centroid tracker * Cleanup typing * Cleanup * Formatting * Fix imports * Don't specify callable type * Type out json setting
20 lines
419 B
Python
20 lines
419 B
Python
from abc import ABC, abstractmethod
|
|
from typing import Any
|
|
|
|
from frigate.config import DetectConfig
|
|
|
|
|
|
class ObjectTracker(ABC):
|
|
@abstractmethod
|
|
def __init__(self, config: DetectConfig) -> None:
|
|
pass
|
|
|
|
@abstractmethod
|
|
def match_and_update(
|
|
self,
|
|
frame_name: str,
|
|
frame_time: float,
|
|
detections: list[tuple[Any, Any, Any, Any, Any, Any]],
|
|
) -> None:
|
|
pass
|