FingerprintDb

Trait FingerprintDb 

Source
pub trait FingerprintDb<OF: ObservedFingerprint, DS: DatabaseSignature<OF>> {
    // Required method
    fn find_best_match(&self, observed: &OF) -> Option<(&Label, &DS, f32)>;
}
Expand description

Represents a collection of database signatures of a specific type. OF is the ObservedFingerprint type. DS is the DatabaseSignature type that can be compared against OF.

Required Methods§

Source

fn find_best_match(&self, observed: &OF) -> Option<(&Label, &DS, f32)>

Finds the best match for an observed fingerprint within this database. Returns the label of the match, the matching database signature, and a quality score.

Implementors§

Source§

impl<OF, DS, K> FingerprintDb<OF, DS> for FingerprintCollection<OF, DS, K>
where OF: ObservedFingerprint<Key = K>, DS: DatabaseSignature<OF> + Display, K: IndexKey,