s6.app.trackΒΆ

Entry points for running the S6 tracking pipeline.

The main() entry point can acquire frames from gstreamer or datasets on disk, optionally record datasets, run the inference pipeline headlessly or with a Qt/VisPy UI, and optionally publish the resulting context[β€œexport”] payloads into a visualizer uplink WebSocket.

s6.app.track.build_uplink_payload(context)

Build a visualizer-compatible uplink payload from a frame context.

Parameters:

context (dict) – Latest frame context emitted by the context generator and pipeline.

Returns:

JSON-serializable payload containing the root export object.

Return type:

dict

s6.app.track.uplink_mode(args, log_dir, uplink_url='ws://127.0.0.1:4173/ws/uplink')

Publish live context['export'] snapshots to a visualizer uplink.

s6.app.track.parse_args(argv=None)

Parse CLI arguments for the track application.

s6.app.track.main()

CLI entry point for running the tracking stack.

This command can: - acquire frames from remote gstreamer (--input gst), a dataset

directory (--input /path);

  • record datasets to --output-dataset (with optional -x/--output-log);

  • run the inference pipeline headlessly or with a Qt/VisPy UI (-v/--ui);

  • override pipeline runtime behavior with --run-level;

  • optionally publish live telemetry snapshots to a visualizer uplink (--uplink).

It selects a concrete context generator from s6.app._contextgenerators based on --input and, unless --record-only is set, runs the configured pipeline instance on each produced context.

The process runs in the foreground in headless mode. With --ui, it starts a Qt application and communicates with a background process via a multiprocessing queue. With --uplink but without --ui, it starts a background publisher that forwards the latest context["export"] snapshot into the configured visualizer uplink.