yscv-recognize 0.1.8

Face/object recognition with cosine matching and VP-Tree ANN
Documentation
use yscv_tensor::Tensor;

#[derive(Debug, Clone, PartialEq)]
pub struct IdentityEmbedding {
    pub id: String,
    pub embedding: Tensor,
}

#[derive(Debug, Clone, PartialEq)]
pub struct Recognition {
    pub identity: Option<String>,
    pub score: f32,
}

impl Recognition {
    pub fn is_known(&self) -> bool {
        self.identity.is_some()
    }
}