TECHNOLOGY

Tracker object IDs after reconnect: preserve session scope before reusing a trajectory

In this article
THE QUICK TAKE

Keep tracker configuration, source epoch and accepted cross-boundary association evidence.

A tracking pipeline resumes after a camera restart. Reused object numbers are joined to old trajectories, turning an unrelated new detection into a continuation of a previous physical object.

The media mechanism

Tracker identity is scoped by the selected tracker, stream lifecycle and reset policy. Equal numerical IDs do not independently establish physical continuity across a source generation change or recalibrated camera.

Establish the pipeline boundary

Scope object identity to the tracker configuration and source lifecycle. A numeric tracker ID can be reused after reset and does not establish a globally unique physical entity.

Preserve source generation and tracker reset context with each trajectory fragment. If the application joins fragments across reconnects, require a separate reassociation rule using appropriate evidence. Equal numbers alone are insufficient, while different numbers do not prove different real objects either.

Use distinct synthetic objects before and after reset, then deliberately permit local IDs to repeat. Inspect downstream duration counters, event deduplication and stored trajectories for accidental continuation. Keep historical fragments immutable when the mapping changes. A later reviewed reassociation can link them explicitly without rewriting the original observation into a continuity claim the tracker never made.

A constructed failure case

Show different synthetic objects before and after a source restart while allowing local IDs to repeat. The application must avoid automatic trajectory continuity unless its declared reassociation evidence supports the link.

A practical validation procedure

Pin tracker configuration and documented reset behavior. Restart a marked source and inspect object identities with session and source context. Require an explicit reassociation rule for trajectories spanning the boundary rather than joining on object number alone.

Keep an unchanged control and a deliberate failure case. Change the relevant setting or interruption independently, then compare observed frame identities and state transitions. Measure through recovery as well as the first error; a restarted worker can retain obsolete results or references.

Evidence for acceptance

Keep tracker configuration, source epoch and accepted cross-boundary association evidence.

Recovery and limits

A correctly scoped ID is not proof of accurate object association within the session.

Define whether recovery drains, discards or isolates pending frames before resuming ordinary service. Preserve compact diagnostic identities and the fixture configuration. Avoid treating a new connection or a live process as proof that previous in-flight work has finished safely.

References and interpretation

Primary references: DeepStream multi-object tracking; DeepStream per-frame metadata.

This is a proposed operational validation, not an executed Retrivium benchmark. Documentation defines interfaces and supported behavior; the actual pipeline needs its own evidence. Repeat the check after relevant plugin, decoder, source or preprocessing changes.

Continue with SAM2 video segmentation: object identity belongs to the inference session; RTSP reconnection: start a new frame-identity epoch before accepting detections. Their adjacent context does not replace the specific frame-flow acceptance check described here.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles