nicetoolbox.visual.media.components.Component

class nicetoolbox.visual.media.components.Component(visualizer_config, io, logger, component_name)[source]

Bases: ABC

Abstract class for defining visual components.

visualizer_config

Configuration settings for the visualizer.

Type:

dict

component_name

The name of the component.

Type:

str

logger

The viewer object for logging the visualizations.

Type:

viewer.Viewer

algorithm_list

The list of algorithms used for the component.

Type:

list

component_prediction_folder

The path to the component prediction folder.

Type:

str

canvas_list

The list of canvases for the component.

Type:

list

algorithms_results

The list of algorithm results for the component.

Type:

list

canvas_data

The dictionary of canvas data for the component.

Type:

dict

Methods

visualize

Abstract method to visualize the component.

abstract visualize()[source]

Abstract method to visualize the component.