Add missing frame_time argument to ObjectTracker.match_and_update()

And some little type hints
This commit is contained in:
JC 2024-02-27 09:57:02 +00:00 committed by GitHub
parent a6aa5328aa
commit fd24ed3d7d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,9 +5,9 @@ from frigate.config import DetectConfig
class ObjectTracker(ABC): class ObjectTracker(ABC):
@abstractmethod @abstractmethod
def __init__(self, config: DetectConfig): def __init__(self, config: DetectConfig) -> None:
pass pass
@abstractmethod @abstractmethod
def match_and_update(self, detections): def match_and_update(self, frame_time: float, detections) -> None:
pass pass