Video-Summary/Application/Importer.py

11 lines
317 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-12-20 18:46:11 +00:00
#print("Loading previous results")
2020-10-16 08:36:52 +00:00
with open(self.path, "rb") as file:
2020-11-27 00:06:25 +00:00
layers, contours, masks = pickle.load(file)
return (layers, contours, masks)