visp.display_utils.get_display

get_display(preferences: list[str] | None = None) Display | None

Get a new ViSP display instance, dependending on what display driver is available.

Parameters:
preference

An optional list of preferred backends to use.

preferences : List[str] | None

Return type:

Display | None

The backends are tested in the order they are specified, and the first match is instanciated. If preference is None, a default list of display is used. This list contains all basic displays. The specified values are case insensitive and may include. See VISP_DEFAULT_DISPLAY_PREFERENCE for the available options

Returns:

a new instance of a ViSP display if one of the requested backend has been found, None otherwise

Parameters:
preferences : List[str] | None

Return type:

Display | None