From 25e3fe8eabbbdfe720ae4f7b71f705796fce3d6e Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Tue, 12 Jan 2021 07:00:08 -0600 Subject: [PATCH] init variables on camera state --- frigate/object_processing.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frigate/object_processing.py b/frigate/object_processing.py index fba02ebf9..1b3ee8c4e 100644 --- a/frigate/object_processing.py +++ b/frigate/object_processing.py @@ -252,6 +252,8 @@ class CameraState(): self._current_frame = np.zeros(self.camera_config.frame_shape_yuv, np.uint8) self.current_frame_lock = threading.Lock() self.current_frame_time = 0.0 + self.motion_boxes = [] + self.regions = [] self.previous_frame_id = None self.callbacks = defaultdict(lambda: [])