Skip to main content

Crate sightloom

Crate sightloom 

Source
Expand description

Facade crate for SightLoom host integration.

Workspace layout:

  • sightloom-core — geometry, detections, NMS, zones, envelopes
  • sightloom-tracking — ByteTrack-style tracking, smoothers, trajectories
  • sightloom-index — observations, masks, VisionIndex storage
  • sightloom-analysis — zone analytics, patterns, anomalies
  • sightloom-reid — subject references and identity contracts
  • sightloom — this facade
detections → tracks → (optional re-id) → zone events → VisionIndex snapshot

Re-exports§

pub use sightloom_analysis as analysis;
pub use sightloom_core as core;
pub use sightloom_index as index;
pub use sightloom_reid as reid;
pub use sightloom_tracking as tracking;

Structs§

DemoSpanDto
Demo-oriented identity + span export row (JSON-friendly).
IndexSession
Host-facing session: multi-source tracker + identity gallery + VisionIndex.
IngestMetrics
Lightweight counters hosts can scrape or export to Prometheus.
IngestPolicy
Host ingest policy for a session or source.
PhotoSearchResult
Photo search hit plus optional evidence reel for host UI.
SeedResult
Helper used by session seed responses.
SourceWatermark
Per-source checkpoint watermark.
TrackSpanExport
Host-facing export of one effective track/mask sample (no pixels).
UncertainIntervalDto
Uncertain identity interval DTO for host UI.

Enums§

DropPolicy
What to do when the ingest queue is full.
IngestDecision
Decision for a candidate frame under policy + watermark.
LateFramePolicy
How to treat frames older than the source watermark.
OutOfOrderPolicy
Out-of-order timestamp policy within a source.
SessionError
Errors raised while materializing a VisionIndex session.
SourceLifecycle
Host-facing source lifecycle event (for adapters / reconnect).

Functions§

analysis_series_from_index
Builds an AnalysisSeries from index tables (effective track samples preferred).
anomaly_reason_label
Summarizes anomaly reasons for host UIs (English labels).
baseline_from_index
Builds a statistical baseline from the index.
detect_anomalies_from_index
Detects statistical anomalies against a baseline using the live index series.
evaluate_stamp
Evaluates late / out-of-order policy for one stamp.
mine_patterns_from_index
Mines patterns from the index and returns new records (does not mutate index).