Fixed PtzMotionEstimator.ptz_metrics type annotation

This commit is contained in:
George Tsiamasiotis 2024-09-25 10:06:37 +03:00
parent 1e73147359
commit eb53733b87

View File

@ -49,9 +49,7 @@ def ptz_moving_at_frame_time(frame_time, ptz_start_time, ptz_stop_time):
class PtzMotionEstimator:
def __init__(
self, config: CameraConfig, ptz_metrics: dict[str, PTZMetrics]
) -> None:
def __init__(self, config: CameraConfig, ptz_metrics: PTZMetrics) -> None:
self.frame_manager = SharedMemoryFrameManager()
self.norfair_motion_estimator = None
self.camera_config = config