pub trait EmbeddingExtractor {
// Required methods
fn extract(
&self,
image_data: &[u8],
width: u32,
height: u32,
) -> CnnResult<Vec<f32>>;
fn embedding_dim(&self) -> usize;
}Expand description
Embedding extractor trait