From 0f15fc72fa05aa385f95d7f9b44aa924c164768f Mon Sep 17 00:00:00 2001 From: damaggu Date: Sat, 30 Nov 2019 18:12:04 +0100 Subject: [PATCH] load results fcn --- behaviopy/computervision.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/behaviopy/computervision.py b/behaviopy/computervision.py index bf94995..cfb7d4f 100644 --- a/behaviopy/computervision.py +++ b/behaviopy/computervision.py @@ -61,6 +61,14 @@ 'nd750_a0142'] +def load_results(path): + """ + Load pickled results from videoprocessing session + :param path: path to .npy file from one video + :return: results dictionary + """ + return np.load(path, allow_pickle=True).item() + class VideoProcessor(): def __init__(self): pass