
Per-track classifier stabiliser. Reads each frame's [TrackedClassification], keeps the last usable samples of every track, and averages each class's probability toward prior, every sample weighted by its confidence. It emits oneof t[[(UInt64, UInt64, Bool)], [Observation.Event], [(UInt64, UInt64)]]: by default the most likely class per track with a reliability flag, or, with one class tracked, a flag or a three-state status (0 negative, 1 uncertain, 2 positive) that can be held against short flicker.
Tracked detections are restated as per-track classifications from their detected class, collapsed to one stable class per id, restated as per-class counts and sent over a message broker.
Re-identified ids keep their class stable across occlusions, with the smoothed verdict posted as JSON.
A two-class protective-equipment classifier scores each tracked person's crop; with one class tracked and a negative threshold set, each person gets a worn, uncertain or missing status that is posted as JSON.
TrackedClassification per tracked object per frame: track id, crop size, confidence and the class probabilities. Any producer of that type can feed it; trackers and re-identifiers emit track records instead, so a graph restates them first, for example in a Transform step that pairs each track with its classifier scores.
tracked_class or whose length differs from the track's other lists stops the worker with an error naming the track and what is wrong with the record. Nothing is emitted for that message, and the stopped worker ends its deployment.tracked_class above positive_confidence_threshold stops the worker at startup. The [(UInt64, UInt64)] output exists only in three-state mode and the [(UInt64, UInt64, Bool)] output only in two-state mode; connecting the other one stops the worker at startup. Either stop ends the deployment.prior, divided by history_size. Slots not yet filled therefore count as the prior, so a freshly seen track stays near it and is slow to flip. A track with no usable sample sits exactly at the prior; with a fixed class it still reports, its flag false or its status 1, whatever the thresholds say.require_latest_agreement, a positive or negative verdict also needs the newest sample's own confidence-weighted value, the prior plus its confidence times its probability's distance from the prior, on the same side of its threshold as the average. Right after a real change the status therefore reads 1, or the flag false, until the history agrees. When a track has several records in one message, its last usable record is its newest sample.status_hold_frames of the track's messages in a row; a message without the track neither counts nor breaks the run, and a message with several records of the track counts once. A real change is therefore reported that many of the track's messages minus one late, and a reported verdict can stay up to that many minus one after the average has left it. The hold acts after the history average, so a long history and a long hold add their delays. The reported probability is the current average of the reported class and is not held.tracked_class and against the track's length, and then ignored.forget_num_frames at least as large as the upstream tracker's own forget window, otherwise the tracker re-emits ids whose history this component has already discarded. A track is kept while its newest usable sample is at most that many messages old; a track with no usable sample, for example one seen only below the minimum size, is dropped at the end of every message and reports its first verdict at once each time.history_size samples, each a copy of its probability list, and its held verdict. A track stays live while its newest usable sample is within the forget_num_frames window, so memory grows with the history size, the class count and the number of distinct track ids that arrive with a usable sample in that window; nothing else bounds it, and the largest window keeps every such id for the life of the worker. Each message also scans every track in memory once, for the length check and for forgetting, so its time grows with the number of tracks in memory as well as with its own records, their stored samples and the class count; a large window with changing ids leaves that growth unbounded.source_id, so give each instance its own value when several feed one event consumer. Its value is the reported class id when no class is tracked, the flag as 0 or 1 when a class is tracked without a negative threshold, and the status 0, 1 or 2 when one is set. Its confidence is the current average of the reported class, which is the tracked class when one is set. Its timestamp is the worker's wall-clock time in Unix milliseconds when the message's events are built, shared by every event of one message; it is the processing time, not the capture time of the frame, and follows the worker host's clock.live-test prerelease
Automated release