sightloom_tracking/
lib.rs1#![cfg_attr(not(feature = "std"), no_std)]
2#![allow(clippy::cast_precision_loss, clippy::similar_names)]
3#[cfg(feature = "alloc")]
9extern crate alloc;
10
11#[cfg(feature = "alloc")]
12mod bytetrack;
13mod config;
14mod error;
15mod kalman;
16mod matching;
17#[cfg(feature = "alloc")]
18mod metrics;
19#[cfg(feature = "alloc")]
20mod mot_challenge;
21#[cfg(feature = "alloc")]
22mod mot_report;
23#[cfg(feature = "std")]
24mod multi_source;
25#[cfg(feature = "alloc")]
26mod synthetic;
27mod track;
28
29pub mod smooth;
30
31pub use config::ByteTrackConfig;
32pub use error::TrackError;
33pub use kalman::KalmanState;
34pub use matching::{AssignResult, AssignScratch, MatchCandidate, greedy_iou_assign};
35pub use track::{Track, TrackState};
36
37#[cfg(feature = "alloc")]
38pub use bytetrack::{ByteTracker, TrackerSnapshot};
39#[cfg(feature = "alloc")]
40pub use metrics::{BaselineMotMetrics, MotFrame, MotObject, evaluate_baseline_mot, mot_from_track};
41#[cfg(feature = "alloc")]
42pub use mot_challenge::{
43 MotChallengeRow, MotParseError, TrackEvalSummary, evaluate_mot_challenge_pair,
44 mot_challenge_to_frames, parse_mot_challenge_line, parse_mot_challenge_text,
45 parse_track_eval_summary, write_mot_challenge_rows,
46};
47#[cfg(feature = "alloc")]
48pub use mot_report::{
49 MotScenarioId, MotScenarioResult, MotSuiteReport, format_mot_challenge_line,
50 run_mot_smoke_suite, run_synthetic_occlusion_gap, run_synthetic_triple_lane,
51 write_mot_challenge_sequence,
52};
53#[cfg(feature = "std")]
54pub use multi_source::{
55 MultiSourceCheckpoint, MultiSourceTracker, SourceTrackerCheckpoint, TrackedDetection,
56 UidMapEntry,
57};
58#[cfg(feature = "alloc")]
59pub use synthetic::{run_synthetic_crossing, run_synthetic_parallel_walk};
60
61pub use smooth::{
62 DetectionSmoother, SmoothConfig, SmoothError, TrajectoryHistory, TrajectorySample,
63 interpolate_bbox,
64};