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§
fn info(&self) -> EngineInfo
fn describe_image( &self, image: &ImageBuffer, opts: &VlmOptions, ) -> Result<String>
Sourcefn describe_video(
&self,
frames: &[VideoFrame],
opts: &VlmOptions,
) -> Result<Vec<TimedSegment<String>>>
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".