Expand description
Portable, allocation-conscious primitives for SightLoom vision pipelines.
This crate is the compact foundation: geometry, detections, overlap, NMS, and basic zone events. Rich observations, masks, tracking, smoothing, and memory live in higher crates.
Structs§
- Anomaly
Id - A unique anomaly identifier produced by analysis.
- Appearance
Id - A unique appearance identifier (one continuous sighting of a subject).
- ClassId
- A model-specific class identifier.
- Detection
- A validated object detection with optional typed metadata.
- Detection
Batch - A detection batch backed by mutable storage owned by the caller.
- Embedding
Ref - An opaque handle to an embedding vector stored out-of-line.
- Event
Envelope - Versioned, queryable event record for a
VisionIndex. - EventId
- A unique event identifier inside a
VisionIndexdocument. - Evidence
Ref - An opaque handle to stored evidence (frame crop, reel, sidecar blob).
- Frame
Stamp - Temporal and source identity of a single frame sample.
- Keypoint
SetRef - An opaque handle to a keypoint set stored out-of-line.
- Line
Segment - A finite, directed line segment with distinct endpoints.
- Line
Zone Monitor - Tracks crossings of a finite directed line segment for at most
Ntracks. - MaskRef
- An opaque handle to a compact mask stored out-of-line.
- Media
Time - Presentation timestamp as rational media time.
- NmsConfig
- Immutable settings for a non-maximum suppression pass.
- Observation
Id - A unique observation identifier within a processing context.
- Pattern
Id - A unique pattern identifier produced by analysis.
- Point
- A finite point in two-dimensional pixel space.
- Polygon
- A polygon borrowing its caller-owned vertex slice.
- Polygon
Zone Monitor - Tracks polygon membership transitions for at most
Ntracks. - Rect
- A validated axis-aligned rectangle using half-open pixel coordinates.
- Source
Id - A media source (camera, file, stream) identifier.
- Subject
Id - A stable subject / identity identifier linked across tracks.
- TrackId
- A track identifier local to a single media source / tracker instance.
- Track
Key - Composite key uniquely identifying a local track within one source.
- Track
Uid - Globally unique track identifier across all sources in a session.
- VisitId
- A unique visit identifier (subject presence in a scene or zone window).
- ZoneId
- An application-specific zone identifier.
Enums§
- Core
Error - An error produced by a core processing operation.
- Direction
- The direction in which a track crossed a directed line segment.
- Event
Kind - Coarse kind tag for an indexed event.
- Event
Payload - Compact payload attached to an
EventEnvelope. - Geometry
Error - An error produced while constructing validated geometry.
- Line
Side - The algebraic side of a point relative to a directed line.
- NmsMode
- The class-comparison policy used during suppression.
- Overlap
Metric - The rectangle-overlap metric used to suppress detections.
- Vision
Event - A membership or crossing transition observed for a track and zone.
Functions§
- crosses_
segment - Returns whether two closed finite segments intersect.
- intersection_
area - Returns the area shared by two rectangles.
- ios
- Returns intersection over the smaller area (
IoS) for two rectangles. - iou
- Returns intersection over union (
IoU) for two rectangles. - line_
side - Returns the algebraic side of a point relative to a directed segment.
- nms_
in_ place - Suppresses overlapping detections without allocating.
Type Aliases§
- Local
Track Id - Local track id alias for multi-source APIs.