Use keyframe interpolation

Keyframe interpolation is the process of creating intermediate values between a set of keyframes. In Segments.ai, this technique applies to object labels that change across video frames, such as a moving car's bounding box. Users set labels at key moments, and the system automatically generates intermediate values.

circle-info

Keyframe interpolation is available for 2D bounding box labels, and for 3D cuboid labels.

Understanding keyframes

A keyframe marks a frame where you've explicitly defined an object's state (position, size, rotation, etc.). Between keyframes, the system automatically interpolates the object's properties.

A remove-keyframe marks a frame where you've explicitly removed an object. It indicates the object is absent from that point until the next regular keyframe.

circle-info

Keyframes are managed through the timeline interface at the bottom of the editor. See Track timeline for details on the timeline interface.

Object attributes and interpolation

circle-exclamation

View the keyframes of an object

The timeline is always visible at the bottom of the editor and displays tracks across frames.

Timeline views

The timeline content changes based on your selection and the active view:

No track selected:

  • Use the View dropdown in the timeline header to switch between:

    • Tracks view: Displays all tracks with their visibility across frames

    • Scene attributes view: Displays scene-level attributes

Track selected:

  • The timeline automatically shows the selected track with its track attributes below

Keyframe indicators

Select a track in the viewer to see its keyframes in the timeline:

  • White diamond icons (◆): Mark frames with keyframes

  • White cross icons (×): Mark remove-keyframes

  • Colored bar: Shows where the track is visible

circle-info

When you select a track in the viewer, the timeline automatically switches to show only that track with its attributes. The View dropdown is disabled while a track is selected.

Add a keyframe

Keyframes are created automatically when you modify an object:

  1. Select a track in the viewer

  2. Navigate to a frame using the timeline navigation buttons or arrow keys

  3. Modify the object (move, resize, rotate, change shape)

  4. A keyframe is automatically created at that frame

circle-info

You don't need to manually create keyframes — they're added whenever you make changes to an object.

Move a keyframe

Drag keyframes to different frames in the timeline:

  1. Select a track in the viewer (timeline switches to show that track)

  2. In the timeline, click and hold on a keyframe diamond (◆)

  3. Drag it to the desired frame

  4. Release to confirm — interpolation is automatically recalculated

circle-info

Keyframes can only be moved within the track's visibility range (where the colored bar appears).

Remove a keyframe

Delete a keyframe to simplify your annotation:

  1. Select a track in the viewer

  2. Navigate to a frame with a keyframe

  3. Press Backspace

The keyframe is removed and interpolation is recalculated based on the remaining keyframes.

circle-exclamation

View the deleted-keyframes of an object

Remove-keyframes appear as white cross icons (×) on blank spaces in the timeline. They indicate frames where you've explicitly removed the object.

Add a deleted-keyframe

Create a remove-keyframe to mark where an object disappears:

  1. Select a track in the viewer

  2. Navigate to the frame where the object should disappear

  3. Press Backspace

The object is removed from that frame onward until the next keyframe.

Move a deleted-keyframe

Drag remove-keyframes just like regular keyframes:

  1. Select a track in the viewer

  2. In the timeline, click and hold on a remove-keyframe cross (×)

  3. Drag it to the desired frame

  4. Release to confirm

Remove a deleted-keyframe

Delete a remove-keyframe to restore object visibility:

  1. Select a track in the viewer

  2. Navigate to a frame with a remove-keyframe

  3. Press Backspace

The object becomes visible again from that frame onward.

Label occluded objects

Two approaches exist for objects that disappear and reappear:

  1. Adjust on reappearance: Adjust the object on its reappearance frame (creating a keyframe), then remove it where occlusion begins.

  2. Remove and merge: Remove the object where occlusion starts, label a new object where it reappears, then merge them by matching their track IDs. See Use track IDs - Merge tracks for details.

circle-info

For more information on managing tracks and navigating the timeline, see Track timeline.

Last updated

Was this helpful?