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