Skip to content
Snippets Groups Projects
Commit 196240af authored by Guillaume HEUSCH's avatar Guillaume HEUSCH
Browse files

[helper] corrected one of the convert frames ... function to work with numpy arrays

parent 8354dc0c
No related branches found
No related tags found
1 merge request!32Minor fixes
......@@ -87,13 +87,17 @@ def convert_list_of_frame_cont_to_array(frame_containers):
An array containing features for all frames of all individuals.
"""
feature_vectors = []
if isinstance( frame_containers[0], bob.bio.video.FrameContainer):
feature_vectors = []
for frame_container in frame_containers:
video_features_array = convert_frame_cont_to_array(
frame_container)
feature_vectors.append(video_features_array)
else:
feature_vectors = frame_containers
features_array = np.vstack(feature_vectors)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment