1#![cfg_attr(not(feature = "std"), no_std)]
2#![allow(
3 clippy::cast_precision_loss,
4 clippy::cast_possible_wrap,
5 clippy::cast_possible_truncation,
6 clippy::cast_sign_loss
7)]
8#[cfg(feature = "alloc")]
21extern crate alloc;
22
23#[cfg(feature = "alloc")]
24mod aggregate;
25#[cfg(feature = "alloc")]
26mod ann;
27#[cfg(feature = "alloc")]
28mod calibrate;
29mod embedding;
30#[cfg(feature = "alloc")]
31mod gallery;
32#[cfg(feature = "alloc")]
33mod intervals;
34#[cfg(feature = "alloc")]
35mod resolver;
36mod score;
37#[cfg(feature = "alloc")]
38mod search;
39mod types;
40
41pub use embedding::{EmbeddingError, cosine_similarity, mean_pool};
42#[cfg(feature = "alloc")]
43pub use score::{CameraEdge, CameraTopology};
44pub use score::{IdentityScoreFactors, ScoreContext, class_compatibility, temporal_plausibility};
45pub use types::{
46 IdentityMatch, MatchDecision, ReferenceSample, SubjectModality, SubjectReference, TrackFragment,
47};
48
49#[cfg(feature = "alloc")]
50pub use aggregate::{EmbeddingObservation, aggregate_fragment};
51#[cfg(feature = "alloc")]
52pub use ann::{
53 AnnBackend, AnnHit, AnnIndex, AnnKind, BruteForceAnn, HnswAnn, HostAnnAdapter, LshAnn,
54 search_with_host_ann,
55};
56#[cfg(feature = "alloc")]
57pub use calibrate::{
58 CalibrationReport, LabeledScore, RocPoint, compute_roc, labeled_scores_from_pairs,
59 resolve_config_from_calibration,
60};
61#[cfg(feature = "alloc")]
62pub use embedding::{EmbeddingModelId, EmbeddingStore};
63#[cfg(feature = "alloc")]
64pub use gallery::{IdentityAuditEvent, SubjectGallery};
65#[cfg(feature = "alloc")]
66pub use intervals::{
67 IdentityInterval, IdentityPoint, coalesce_identity_intervals,
68 coalesce_identity_intervals_gapped, interval_from_match, uncertain_only,
69};
70#[cfg(feature = "alloc")]
71pub use resolver::{NegativeEvidencePolicy, ResolveConfig, SubjectLastSeen, ThresholdResolver};
72#[cfg(feature = "alloc")]
73pub use search::{PhotoQuery, PhotoSearchHit, rank_subjects_by_cosine, search_gallery_by_photo};
74#[cfg(feature = "alloc")]
75pub use types::IdentityResolver;