Skip to content

Result Processor

app.application.services.tracking.result_processor

View source code

Result processing collaborator for worker-produced tracking outputs.

See Also

Layer: Application. Context: Coordinates domain state and infrastructure to complete application use cases.

TrackingResultProcessor

Refresh Layer C and replace Layer D machine boxes while preserving edits.

PARAMETER DESCRIPTION
session_repo

Interface used to retrieve a session and persist post-processed tracking boxes.

TYPE: UIApplicationInterface

__init__(session_repo: UIApplicationInterface) -> None

overwrite_layer_c(s_id: SessionId, tracked_data: ListOfBoxesByFrameIndexAsDict) -> None

Overwrite Layer C and refresh Layer D across the session frame range.

PARAMETER DESCRIPTION
s_id

Session identifier receiving tracking results.

TYPE: SessionId

tracked_data

Post-processed tracking boxes indexed by frame.

TYPE: ListOfBoxesByFrameIndexAsDict

Raises: Exception: Propagates invalid-session, filtering, and storage failures.

Note

Layer D refresh is one bulk storage operation. Its existing manual boxes survive, while all machine boxes are re-filtered from Layer C.

Example

processor.overwrite_layer_c(session_id, tracked_data)