nicetoolbox.visual.media.components.HeadOrientationComponent

class nicetoolbox.visual.media.components.HeadOrientationComponent(visualizer_config: Dict, io, logger, component_name: str)[source]

Bases: Component

Class for visualizing head orientation data.

Initialize the HeadOrientationComponent.

Parameters:
  • visualizer_config (Dict) – The visualizer configuration settings.

  • io – The input/output object.

  • logger (viewer.Viewer) – The viewer rerun object.

  • component_name (str) – The name of the component.

Methods

visualize

Visualize the head orientation component.

visualize(frame_idx: int) None[source]

Visualize the head orientation component.

Combines the _log_data method to visualize the head orientation component in either 2D.

Parameters:

frame_idx (int) – The frame index.