2020-09-22 18:25:06 +00:00
|
|
|
import os
|
|
|
|
|
import time
|
|
|
|
|
from ContourExctractor import ContourExtractor
|
2020-09-23 20:02:46 +00:00
|
|
|
from Exporter import Exporter
|
2020-09-24 20:48:04 +00:00
|
|
|
from LayerFactory import LayerFactory
|
2020-09-22 18:25:06 +00:00
|
|
|
#TODO
|
2020-09-23 20:02:46 +00:00
|
|
|
# finden von relevanten Stellen anhand von zu findenen metriken für vergleichsbilder
|
2020-09-24 13:47:49 +00:00
|
|
|
# X diff zu den ref bildern aufnehmen
|
|
|
|
|
# zeichen von contour inhalt
|
2020-09-23 20:02:46 +00:00
|
|
|
# langes video
|
2020-09-20 20:01:54 +00:00
|
|
|
|
2020-09-23 20:02:46 +00:00
|
|
|
def demo():
|
2020-09-20 20:01:54 +00:00
|
|
|
print("startup")
|
2020-09-24 20:48:04 +00:00
|
|
|
footagePath = os.path.join(os.path.dirname(__file__), "./generate test footage/out.mp4")
|
2020-09-22 18:25:06 +00:00
|
|
|
|
|
|
|
|
start = time.time()
|
|
|
|
|
contourExtractor = ContourExtractor(footagePath)
|
|
|
|
|
print("Time consumed in working: ",time.time() - start)
|
|
|
|
|
|
2020-09-24 15:14:59 +00:00
|
|
|
frames = contourExtractor.exportContours()
|
2020-09-24 20:48:04 +00:00
|
|
|
#Exporter().export(frames,os.path.join(os.path.dirname(__file__), "./short.mp4"))
|
|
|
|
|
contours = contourExtractor.getextractedContours()
|
|
|
|
|
layerFactory = LayerFactory(contourExtractor.extractedContours)
|
2020-09-24 13:47:49 +00:00
|
|
|
|
2020-09-20 20:01:54 +00:00
|
|
|
|
2020-09-23 20:02:46 +00:00
|
|
|
def init():
|
|
|
|
|
print("not needed yet")
|
2020-09-20 20:01:54 +00:00
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
2020-09-23 20:02:46 +00:00
|
|
|
demo()
|
2020-09-22 18:25:06 +00:00
|
|
|
|
|
|
|
|
|