Video-Summary/Application/Importer.py

11 lines
302 B
Python
Raw Normal View History

2020-10-16 08:36:52 +00:00
import pickle
class Importer:
def __init__(self, config):
self.path = config["importPath"]
def importRawData(self):
2020-11-08 15:28:47 +00:00
print("Loading previous results")
2020-10-16 08:36:52 +00:00
with open(self.path, "rb") as file:
2020-11-08 15:28:47 +00:00
layers, contours = pickle.load(file)
return (layers, contours)