mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-10-02 12:56:51 +03:00
Enable mypy for track and fix typing errors (#19529)
* 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
This commit is contained in:
@@ -60,10 +60,10 @@ class PtzMotionEstimator:
|
||||
|
||||
def motion_estimator(
|
||||
self,
|
||||
detections: list[dict[str, Any]],
|
||||
detections: list[tuple[Any, Any, Any, Any, Any, Any]],
|
||||
frame_name: str,
|
||||
frame_time: float,
|
||||
camera: str,
|
||||
camera: str | None,
|
||||
):
|
||||
# If we've just started up or returned to our preset, reset motion estimator for new tracking session
|
||||
if self.ptz_metrics.reset.is_set():
|
||||
|
||||
Reference in New Issue
Block a user