method

states.SoftReplace.__call__

def __call__(self, cs: Tracklets, ds: Detections, match: MatchOutcome, ctx: FrameContext) -> Tracklets

Blend each tracklet field as a weighted sum of detection values.

Parameters

NameTypeDescription
csTrackletsCurrent tracklet snapshot.
dsDetectionsCurrent-frame detections.
matchMatchOutcomeMatched pairs and (optionally) attached transport plan.
ctxFrameContextFrame context.

Returns

Tracklets — New snapshot with the field updated.

Raises

  • RuntimeError — If no transport plan is available — neither passed at construction nor attached to ``match``.

Source: unitrack/states/soft.py:49