Skip to content
Snippets Groups Projects
Commit 9d65b96a authored by Olegs NIKISINS's avatar Olegs NIKISINS
Browse files

Merge branch 'algo_helpers_fix' into 'master'

Fixed convert_frame_cont_to_array addressing missing annotations

See merge request !36
parents 6573130e 3a608248
No related branches found
No related tags found
1 merge request!36Fixed convert_frame_cont_to_array addressing missing annotations
Pipeline #
......@@ -32,9 +32,12 @@ def convert_frame_cont_to_array(frame_container):
for frame in frame_container:
frame_dictionary[frame[0]] = frame[1]
sorted_keys = np.sort([int(key) for key in frame_dictionary.keys()])
for idx, _ in enumerate(frame_container):
# Frames are stored in a mixed order, therefore we get them using incrementing frame index:
feature_vectors.append(frame_dictionary[str(idx)])
# Frames are stored in a mixed order, therefore we get them using incrementing frame index.
# Also, some frames might be missing, this is also addressed.
feature_vectors.append(frame_dictionary[str(sorted_keys[idx])])
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