VideoSafetyModuleBase<T>
Base Classes · AiDotNet.Safety.Video
Abstract base class for video safety modules.
Inheritance: ModelBase<T, Vector<T>, Vector<T>> → SafetyModuleBase<T> → VideoSafetyModuleBase<T>
Implements: IVideoSafetyModule<T>
Known derived types: FrameSamplingVideoModerator<T>, MultimodalVideoModerator<T>, TemporalConsistencyDetector<T>
For Beginners
This base class handles the plumbing so that each video safety
module only needs to implement one method: EvaluateVideo(IReadOnlyList<Tensor<T>>, double).
How It Works
Provides shared infrastructure for all video safety modules. Concrete modules implement
EvaluateVideo and this base class handles
the Evaluate bridge.
Properties
| Property | Summary |
|---|---|
int MinimumFrames { get; } |
Gets the fewest frames this module needs to judge anything. |
Methods
| Method | Summary |
|---|---|
IReadOnlyList<SafetyFinding> Evaluate(Vector<T> content) |
|
IReadOnlyList<SafetyFinding> EvaluateVideo(IReadOnlyList<Tensor<T>> frames, double frameRate) |