Visual Servoing Platform version 3.7.0
Loading...
Searching...
No Matches
visp.python.display_utils Namespace Reference

Functions

Optional[Display] get_display (Optional[List[str]] preferences=None)

Variables

dict VISP_DISPLAY_CLS_MAP
list VISP_DEFAULT_DISPLAY_PREFERENCE = ['x', 'opencv', 'gtk', 'win32', 'gdi']

Function Documentation

◆ get_display()

Optional[Display] visp.python.display_utils.get_display ( Optional[List[str]] preferences = None)
Get a new ViSP display instance, dependending on what display driver is available.

:param preference: An optional list of preferred backends to use.
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

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

Definition at line 81 of file display_utils.py.

Variable Documentation

◆ VISP_DEFAULT_DISPLAY_PREFERENCE

list visp.python.display_utils.VISP_DEFAULT_DISPLAY_PREFERENCE = ['x', 'opencv', 'gtk', 'win32', 'gdi']

Definition at line 78 of file display_utils.py.

◆ VISP_DISPLAY_CLS_MAP

dict visp.python.display_utils.VISP_DISPLAY_CLS_MAP
Initial value:
1= {
2 'x': None,
3 'opencv': None,
4 'gtk': None,
5 'win32': None,
6 'gdi': None,
7}

Definition at line 40 of file display_utils.py.