Skip to main content

Crate sightloom_tracking

Crate sightloom_tracking 

Source
Expand description

Multi-object tracking, detection smoothing, and trajectory history.

Combines Kalman / association tracking with exponential smoothers and fixed-capacity trajectory buffers.

Re-exports§

pub use smooth::DetectionSmoother;
pub use smooth::SmoothConfig;
pub use smooth::SmoothError;
pub use smooth::TrajectoryHistory;
pub use smooth::TrajectorySample;
pub use smooth::interpolate_bbox;

Modules§

smooth
Detection smoothing and trajectory history.

Structs§

AssignResult
Sizes of the assignment outputs.
AssignScratch
Scratch buffers required by greedy_iou_assign.
BaselineMotMetrics
Aggregate baseline MOT metrics over a sequence.
ByteTrackConfig
Runtime parameters for crate::ByteTracker.
ByteTracker
ByteTrack multi-object tracker with stable IDs.
KalmanState
Eight-dimensional Kalman state: center, aspect, height, and velocities.
MatchCandidate
A candidate pair for assignment with an intersection-over-union score.
MotChallengeRow
One MOTChallenge detection / GT row.
MotFrame
One frame of GT and hypotheses.
MotObject
One ground-truth or hypothesis box in a frame.
MotScenarioResult
One scenario result.
MotSuiteReport
Full suite report (synthetic only).
MultiSourceCheckpoint
Checkpoint payload for multi-source tracking.
MultiSourceTracker
Multi-source tracker: one independent motion model per SourceId.
SourceTrackerCheckpoint
One source tracker inside a multi-source checkpoint.
Track
One tracked object with Kalman state and metadata.
TrackEvalSummary
Host-attached TrackEval (or similar) summary numbers — not computed in-tree.
TrackedDetection
One detection result annotated with multi-source identity keys.
TrackerSnapshot
Serializable snapshot of a single-source tracker runtime.
UidMapEntry
One uid map row.

Enums§

MotParseError
Parse failure for MOTChallenge / TrackEval text.
MotScenarioId
Named synthetic scenario.
TrackError
An error produced by tracking operations.
TrackState
Lifecycle state of a track.

Functions§

evaluate_baseline_mot
Evaluates baseline CLEAR metrics with greedy IoU matching per frame.
evaluate_mot_challenge_pair
Parses GT + hyp MOTChallenge text and runs baseline CLEAR metrics.
format_mot_challenge_line
MOTChallenge DET/GT line format helper (one sequence).
greedy_iou_assign
Greedy deterministic assignment sorted by descending score, then track index, then detection index. Each track and detection is used at most once.
mot_challenge_to_frames
Groups GT and hypothesis rows into per-frame MotFrames (union of frame ids).
mot_from_track
Helper: wraps a track id + rect as a MOT object.
parse_mot_challenge_line
Parses a single MOTChallenge line.
parse_mot_challenge_text
Parses MOTChallenge multi-line text into rows (skips blank / # comments).
parse_track_eval_summary
Parses a compact host summary:
run_mot_smoke_suite
Runs the default synthetic suite with the given tracker config.
run_synthetic_crossing
Crossing walk: two boxes swap horizontal lanes mid-sequence.
run_synthetic_occlusion_gap
Single box disappears for gap frames then returns (same GT id).
run_synthetic_parallel_walk
Runs a two-object parallel walk through ByteTracker and scores CLEAR metrics.
run_synthetic_triple_lane
Three parallel non-overlapping lanes.
write_mot_challenge_rows
Serializes rows back to MOTChallenge text (sorted by frame, then id).
write_mot_challenge_sequence
Builds MOTChallenge text for GT or hypothesis tracks from MotFrames.