Use keyframe interpolation
Keyframe interpolation is the process of creating intermediate values between a set of keyframes. The keyframes are specified by you and then the values in the frames between the keyframes are automatically filled in.
In Segments.ai, keyframe interpolation is used for object labels that change over time. For example, in a sequence with a moving car, the bounding box around the car moves in each frame. With keyframe interpolation, you only need to specify the label at certain key times, and the intermediate labels will be created automatically.
Object attributes and interpolation
Editing an object-level attribute will create a new keyframe, and attribute values are copied between keyframes. This means that if you edit an object-level attribute, its value will be copied until the next existing keyframe.
If want to change an attribute of an object with existing keyframes, make sure to change the value on all necessary keyframes.
View the keyframes of an object
In the context of interpolation, a keyframe is a marker that indicates that at that frame, the state of the object is defined by the user. In other frames (that are not keyframes), the state of the object label is calculated automatically through interpolation.
Select the object.
The keyframes are visible in the timeline at the bottom of the editor. Each track is present or not in the current frame. A present track in a frame is represented by a colored bar. A keyframe is shown as a white diamond icon on top of a colored bar for the corresponding frame.

Add a keyframe
Select the object.
Make a change to the object in the editor. A keyframe containing the new changes is added automatically.
Move a keyframe
Select the object.
In the timeline, click and drag the keyframe. When you release your mouse, the changes will be applied and the interpolation will be recalculated.
Remove a keyframe
Select the object and a frame where it contains a keyframe.
Press the
Backspace
key to remove the keyframe. The interpolation will be recalculated immediately.
View the deleted-keyframes of an object
A deleted-keyframe is a visual indication of where an object was explicitly removed from the sample. A deleted-keyframe means that the object is not present in that frame and all frames before the next standard keyframe.
Select the object and a frame where it contains no keyframe.
The deleted-keyframes are visible in the timeline at the bottom of the editor. Each track is present or not in the current frame. A non-present track in a frame is represented by a blank dark space. A deleted-keyframe is shown as a white cross icon on top of a blank space.

Add a deleted-keyframe
Select the object.
Remove the object from the current frame (see Use the labeling interfaces). A deleted-keyframe is added automatically.
Move a deleted-keyframe
Select the object.
In the timeline, click and drag the deleted-keyframe. When you release your mouse, the changes will be applied.
Remove a deleted-keyframe
Select the object.
In the timeline, click the deleted-keyframe you want to remove.
Press the
Backspace
key to remove the deleted-keyframe. The interpolation will be recalculated immediately.
Label occluded objects
Sometimes an object might be occluded, in which case you might want the object to not be present in certain frames and reappear in other frames. There are several ways to obtain this.
One procedure is to ...
Label a cuboid
Adjust the cuboid on the first frame where it reappears. This will create a keyframe.
Remove the cuboid on the first frame where it starts being occluded. The removal will carry through to the next keyframe which is the first frame where it reappears.
Another procedure is to ...
Label a cuboid
Remove the cuboid in the first frame where it starts being occluded.
Label a new cuboid in the first frame where it reappears
Change the track ID of the new cuboid into the track ID of the initial cuboid. This will merge both cuboids together on a single track.

Last updated
Was this helpful?