mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-14 23:25:25 +03:00
Catch none frame in autotracking
This commit is contained in:
parent
6dc7e9a76c
commit
bcfd13ff73
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user