Skip to content
Snippets Groups Projects

Stream api annotations mod

Merged Anjith GEORGE requested to merge stream_api_annotations_mod into master

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
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):
  • Anjith GEORGE
    Anjith GEORGE @ageorge started a thread on commit fcafe594
  • 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.

    • Please register or sign in to reply
  • Anjith GEORGE assigned to @dgeissbuhler and unassigned @ageorge

    assigned to @dgeissbuhler and unassigned @ageorge

  • Anjith GEORGE assigned to @vpollet and unassigned @dgeissbuhler

    assigned to @vpollet and unassigned @dgeissbuhler

  • Vincent POLLET mentioned in commit e0b8b335

    mentioned in commit e0b8b335

  • Please register or sign in to reply
    Loading