formatting

This commit is contained in:
Askill 2022-08-15 12:21:20 +02:00
parent de1a741e62
commit 90ecff91f4
2 changed files with 5 additions and 4 deletions

View File

@ -90,7 +90,6 @@ class VideoReader:
self.lastFrame = self.listOfFrames[0]
self.buffer.put((self.lastFrame, None))
def videoEnded(self):
if self.stopped and self.buffer.empty():
return True

View File

@ -30,7 +30,9 @@ def main(config):
if len(layerManager.layers) == 0:
exit(1)
heatmap = HeatMap(config["w"], config["h"], [contour for layer in layerManager.layers for contour in layer.bounds], 1920 / config["resizeWidth"])
heatmap = HeatMap(
config["w"], config["h"], [contour for layer in layerManager.layers for contour in layer.bounds], 1920 / config["resizeWidth"]
)
heatmap.showImage()
print(f"Exporting {len(contours)} Contours and {len(layerManager.layers)} Layers")