From 31731f2dc35276ee8f2f04cb3fe514fc07638c28 Mon Sep 17 00:00:00 2001 From: Askill Date: Sun, 11 Sep 2022 11:25:36 +0200 Subject: [PATCH] manager().queue() --- Application/ContourExctractor.py | 1 - Application/VideoReader.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Application/ContourExctractor.py b/Application/ContourExctractor.py index d00570e..593b8de 100644 --- a/Application/ContourExctractor.py +++ b/Application/ContourExctractor.py @@ -110,7 +110,6 @@ class ContourExtractor: return gray def computeMovingAverage(self, frames): - avg = [] averageFrames = self.config["avgNum"] if frames[0][0] < averageFrames: diff --git a/Application/VideoReader.py b/Application/VideoReader.py index 126324d..8b4759d 100644 --- a/Application/VideoReader.py +++ b/Application/VideoReader.py @@ -21,7 +21,7 @@ class VideoReader: # buffer = Queue([(frameNumber, frame), ]) self.multiprocess = multiprocess if multiprocess: - self.buffer = multiprocessing.Queue(config["videoBufferLength"]) + self.buffer = multiprocessing.Manager().Queue(config["videoBufferLength"]) else: self.buffer = queue.Queue(config["videoBufferLength"]) self.stopped = False