Video-Summary/Application/Importer.py

13 lines
318 B
Python
Raw Normal View History

2020-10-16 08:36:52 +00:00
import pickle
2022-01-09 19:25:44 +00:00
2020-10-16 08:36:52 +00:00
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-27 00:06:25 +00:00
layers, contours, masks = pickle.load(file)
2022-01-09 19:25:44 +00:00
return (layers, contours, masks)