MLVideoFeature
class NatML.Features.MLVideoFeature : MLFeature, IMLCloudFeature, IEnumerable<(MLImageFeature feature, long timestamp)>
INCOMPLETE.
Creating the Feature
INCOMPLETE.
From a Video File
/// <summary>
/// Create an video feature from a video file.
/// </summary>
/// <param name="path">Video file path.</param>
MLVideoFeature (string path);INCOMPLETE.
From Streaming Assets
/// <summary>
/// Create a video feature from a video file in the `StreamingAssets` folder.
/// </summary>
/// <param name="relativePath">Relative path to video file in `StreamingAssets` folder.</param>
/// <returns>Video feature or `null` if no valid video can be found at the relative path.</returns>
static Task<MLVideoFeature> FromStreamingAssets (string relativePath);INCOMPLETE.
Inspecting the Feature
INCOMPLETE
Feature Type
Refer to the Inspecting the Feature section of the MLFeature class for more information.
Video Path
The video feature provides the full path of its source video.
Video Width
The video feature provides the width of its source video in pixels.
Video Height
The video feature provides the height of its source video in pixels.
Video Frame Count
The video feature provides the frame count of its source video.
Note that the reported frame count is merely an approximate count based on the average frame rate and duration of the source video. Enumerate the video to get an exact count.
Handling Normalization
See the Handling Normalization section of the MLImageFeature class for more information.
Handling Aspect Mode
See the Handling Aspect Mode section of the MLImageFeature class for more information.
Enumerating Video Frames
INCOMPLETE.
Creating Cloud Features
INCOMPLETE.
Last updated
Was this helpful?