From e261c2081913067640d6f43b5aefae85427f0549 Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Sun, 12 Jan 2020 07:49:52 -0600 Subject: [PATCH] let the queues get as big as needed --- detect_objects.py | 2 +- frigate/video.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/detect_objects.py b/detect_objects.py index e31f6f03b..b7156bab2 100644 --- a/detect_objects.py +++ b/detect_objects.py @@ -73,7 +73,7 @@ def main(): # Queue for prepped frames, max size set to number of regions * 3 max_queue_size = sum([len(camera['regions'])*3 for name, camera in CONFIG['cameras'].items()]) - prepped_frame_queue = queue.Queue(max_queue_size) + prepped_frame_queue = queue.Queue() cameras = {} for name, config in CONFIG['cameras'].items(): diff --git a/frigate/video.py b/frigate/video.py index 911d651d5..13b9a1ce4 100644 --- a/frigate/video.py +++ b/frigate/video.py @@ -168,7 +168,7 @@ class Camera: # Queue for prepped frames, max size set to (number of regions * 5) max_queue_size = len(self.config['regions'])*5 - self.resize_queue = queue.Queue(max_queue_size) + self.resize_queue = queue.Queue() # Queue for raw detected objects self.detected_objects_queue = queue.Queue()