Skip to main content

sample_frames

Function sample_frames 

Source
pub fn sample_frames(
    total: usize,
    video_fps: f64,
    cfg: &MimoProcessorConfig,
) -> Result<(Vec<usize>, Vec<f32>), String>
Expand description

The sampled frame indices and their timestamps: unique(int64(linspace(0, total−1, n))) and float32(idx) / fps_src.