This commit is contained in:
parent
ea037d5d24
commit
cfcf0daed4
|
|
@ -13,3 +13,5 @@ __pycache__/
|
||||||
*.m4v
|
*.m4v
|
||||||
|
|
||||||
/output/*.txt
|
/output/*.txt
|
||||||
|
|
||||||
|
docs/ueberblick.drawio.png
|
||||||
|
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 504 KiB |
16
main.py
16
main.py
|
|
@ -1,13 +1,15 @@
|
||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
from Application.Classifiers import *
|
||||||
|
from Application.Config import Config
|
||||||
from Application.ContourExctractor import ContourExtractor
|
from Application.ContourExctractor import ContourExtractor
|
||||||
from Application.Exporter import Exporter
|
from Application.Exporter import Exporter
|
||||||
from Application.LayerFactory import LayerFactory
|
|
||||||
from Application.Config import Config
|
|
||||||
from Application.Importer import Importer
|
from Application.Importer import Importer
|
||||||
from Application.VideoReader import VideoReader
|
from Application.LayerFactory import LayerFactory
|
||||||
from Application.LayerManager import LayerManager
|
from Application.LayerManager import LayerManager
|
||||||
from Application.Classifiers import *
|
from Application.VideoReader import VideoReader
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
startTotal = time.time()
|
startTotal = time.time()
|
||||||
|
|
@ -19,7 +21,8 @@ def main():
|
||||||
|
|
||||||
config["inputPath"] = os.path.join(dirName, fileName)
|
config["inputPath"] = os.path.join(dirName, fileName)
|
||||||
config["outputPath"] = os.path.join(outputPath, fileName)
|
config["outputPath"] = os.path.join(outputPath, fileName)
|
||||||
config["importPath"] = os.path.join(outputPath, fileName.split(".")[0] + ".txt")
|
config["importPath"] = os.path.join(
|
||||||
|
outputPath, fileName.split(".")[0] + ".txt")
|
||||||
config["w"], config["h"] = VideoReader(config).getWH()
|
config["w"], config["h"] = VideoReader(config).getWH()
|
||||||
|
|
||||||
if not os.path.exists(config["importPath"]):
|
if not os.path.exists(config["importPath"]):
|
||||||
|
|
@ -44,7 +47,6 @@ def main():
|
||||||
exporter.export(layers, contours, masks, raw=True, overlayed=True)
|
exporter.export(layers, contours, masks, raw=True, overlayed=True)
|
||||||
print("Total time: ", time.time() - startTotal)
|
print("Total time: ", time.time() - startTotal)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue