From ecbfbb1119736a2e1e7a04f21357c34c640adf65 Mon Sep 17 00:00:00 2001
From: ageorge <anjith.george@idiap.ch>
Date: Thu, 16 Apr 2020 16:38:22 +0200
Subject: [PATCH] Fixes

---
 bob/pad/face/database/hqwmca.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/bob/pad/face/database/hqwmca.py b/bob/pad/face/database/hqwmca.py
index 571490ba..81cb2870 100644
--- a/bob/pad/face/database/hqwmca.py
+++ b/bob/pad/face/database/hqwmca.py
@@ -288,12 +288,12 @@ class HQWMCAPadDatabase(PadDatabase):
             print('self.streams.image_points',self.streams['color'].image_points)
 
 
-          del video
+          #del video
 
           # The reprojected color frames
 
           # load only the reprojected stream
-          video = ff.vf.load(  directory=self.original_directory, extension=self.original_extension, streams={'rep_color': rep_color_stream}, n_frames=self.n_frames)
+          video = ff.vf.load(  directory=self.original_directory, extension=self.original_extension, streams={'rep_color': rep_color_stream}, n_frames=self.n_frames)['rep_color']
             
 
           for idx, image in enumerate(video.as_array()): # next line is not loading the data but just use the projection , probably wont work
@@ -348,4 +348,4 @@ class HQWMCAPadDatabase(PadDatabase):
 
 # np.array(a)
 
-# annot_entries=sorted(aa.keys())
\ No newline at end of file
+# annot_entries=sorted(aa.keys())
-- 
GitLab