SpeedChange<T>

Models & Types · AiDotNet.Augmentation.Video

Changes the playback speed of video by resampling frames.

Inheritance: AugmentationBase<T, ImageTensor<T>[]> → VideoAugmenterBase<T> → TemporalAugmenterBase<T> → SpeedChange<T>

For Beginners

Speed change makes video play faster or slower by keeping/skipping/duplicating frames. This simulates different action speeds and helps models recognize actions regardless of how fast they’re performed.

How It Works

Speed factors:

  • 2.0 = double speed (skip every other frame)
  • 1.0 = normal speed
  • 0.5 = half speed (duplicate frames)

Constructors

Constructor Summary
SpeedChange(double minSpeed, double maxSpeed, double probability, double frameRate) Creates a new speed change augmentation.

Properties

Property Summary
double MaxSpeed { get; } Gets the maximum speed factor.
double MinSpeed { get; } Gets the minimum speed factor.

Methods

Method Summary
IDictionary<string, object> GetParameters()