Skip to main content

VlmEngine

Trait VlmEngine 

Source
pub trait VlmEngine: Send + Sync {
    // Required methods
    fn info(&self) -> EngineInfo;
    fn describe_image(
        &self,
        image: &ImageBuffer,
        opts: &VlmOptions,
    ) -> Result<String>;
    fn describe_video(
        &self,
        frames: &[VideoFrame],
        opts: &VlmOptions,
    ) -> Result<Vec<TimedSegment<String>>>;
}
Expand description

Image/video → description (Argus).

Required Methods§

Source

fn info(&self) -> EngineInfo

Source

fn describe_image( &self, image: &ImageBuffer, opts: &VlmOptions, ) -> Result<String>

Source

fn describe_video( &self, frames: &[VideoFrame], opts: &VlmOptions, ) -> Result<Vec<TimedSegment<String>>>

Video understanding over sampled frames → a timed caption track.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§