From bcfd13ff7305c7d859dd2518bc3488612862c5d2 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Tue, 3 Sep 2024 10:14:13 -0600 Subject: [PATCH] Catch none frame in autotracking --- frigate/ptz/autotrack.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frigate/ptz/autotrack.py b/frigate/ptz/autotrack.py index 44082a52e..92c4141a7 100644 --- a/frigate/ptz/autotrack.py +++ b/frigate/ptz/autotrack.py @@ -99,6 +99,10 @@ class PtzMotionEstimator: frame_id, self.camera_config.frame_shape_yuv ) + if yuv_frame is None: + self.coord_transformations = None + return None + frame = cv2.cvtColor(yuv_frame, cv2.COLOR_YUV2GRAY_I420) # mask out detections for better motion estimation