Stream api annotations mod
Merge request reports
Activity
181 181 182 182 ret[name] = convert_arrays_to_frame_container(data) 183 183 return ret 184 185 186 def transform_annotations(bounding_box, image_points, source_stream, destination_stream, n_frames): @dgeissbuhler : Is this meant to be an independent function/ class method?
211 216 212 217 for i in range(n_frames): 213 218 frame_index = indices[i] 214 bounding_box[i] = destination_stream.bounding_box[frame_index] 215 image_points[i] = destination_stream.image_points[frame_index] 219 r_bounding_box.append(destination_stream.bounding_box[frame_index]) 220 r_image_points.append(destination_stream.image_points[frame_index]) @dgeissbuhler is it ok if I change this in place modification?, more debuggable this way
i prefer the original way, because it is reminicent of the loop above. on the other hand it should work.
what is very important is not to use append on source_stream.bounding_box and source_stream.image_points, these are not python nor numpy arrays, these are a special type of incomplete array known as StreamArray defined in the utils module.
assigned to @dgeissbuhler and unassigned @ageorge
assigned to @vpollet and unassigned @dgeissbuhler
mentioned in commit e0b8b335
Please register or sign in to reply