Skip to content

Commit

Permalink
Catch none frame in autotracking
Browse files Browse the repository at this point in the history
  • Loading branch information
NickM-27 committed Sep 3, 2024
1 parent 6dc7e9a commit bcfd13f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frigate/ptz/autotrack.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ def motion_estimator(self, detections, frame_time, camera):
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
Expand Down

0 comments on commit bcfd13f

Please sign in to comment.