concepts.hw_interface.realsense.visualizer.RealSenseVisualizer#

class RealSenseVisualizer[source]#

Bases: object

Methods

visualize([save_dir, save_image])

Visualize color and depth images in a cv2 window.

__init__(device)[source]#
__new__(**kwargs)#
visualize(save_dir='', save_image=False)[source]#

Visualize color and depth images in a cv2 window. Terminates when ‘esc’ or ‘q’ key is pressed. Saves an image when the ‘s’ key is pressed or if the ‘save_image’ flag is specified. Images are saved to the specified save_dir, which we assume to already exist. Returns a _WindowEvent indicating status of cv2.

Parameters:
  • save_dir (str) –

  • save_image (bool) –

Return type:

_WindowEvent