Video-Summary/main.py

29 lines
763 B
Python
Raw Normal View History

2020-09-22 18:25:06 +00:00
import os
import time
from ContourExctractor import ContourExtractor
from Exporter import Exporter
2020-09-22 18:25:06 +00:00
#TODO
# finden von relevanten Stellen anhand von zu findenen metriken für vergleichsbilder
# diff zu den ref bildern aufnehmen
# zeichenn on contour inhalt
# langes video
2020-09-20 20:01:54 +00:00
def demo():
2020-09-20 20:01:54 +00:00
print("startup")
2020-09-22 18:25:06 +00:00
footagePath = os.path.join(os.path.dirname(__file__), "./generate test footage/out.mp4")
start = time.time()
contourExtractor = ContourExtractor(footagePath)
print("Time consumed in working: ",time.time() - start)
frames = contourExtractor.displayContours()
#exporter = Exporter(frames,os.path.join(os.path.dirname(__file__), "./short.mp4"))
2020-09-20 20:01:54 +00:00
def init():
print("not needed yet")
2020-09-20 20:01:54 +00:00
if __name__ == "__main__":
demo()
2020-09-22 18:25:06 +00:00