let the queues get as big as needed

This commit is contained in:
Blake Blackshear 2020-01-12 07:49:52 -06:00
parent 3a66e672d3
commit e261c20819
2 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ def main():
# Queue for prepped frames, max size set to number of regions * 3 # 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()]) 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 = {} cameras = {}
for name, config in CONFIG['cameras'].items(): for name, config in CONFIG['cameras'].items():

View File

@ -168,7 +168,7 @@ class Camera:
# Queue for prepped frames, max size set to (number of regions * 5) # Queue for prepped frames, max size set to (number of regions * 5)
max_queue_size = len(self.config['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 # Queue for raw detected objects
self.detected_objects_queue = queue.Queue() self.detected_objects_queue = queue.Queue()