Variables | |
color_colormap_dim = color_image.shape | |
color_frame = frames.get_color_frame() | |
color_image = np.asanyarray(color_frame.get_data()) | |
config = rs.config() | |
depth_colormap = cv2.applyColorMap(cv2.convertScaleAbs(depth_image, alpha=0.03), cv2.COLORMAP_JET) | |
depth_colormap_dim = depth_colormap.shape | |
depth_frame = frames.get_depth_frame() | |
depth_image = np.asanyarray(depth_frame.get_data()) | |
device = pipeline_profile.get_device() | |
device_product_line = str(device.get_info(rs.camera_info.product_line)) | |
frames = pipeline.wait_for_frames() | |
images = np.hstack((resized_color_image, depth_colormap)) | |
pipeline = rs.pipeline() | |
pipeline_profile = config.resolve(pipeline_wrapper) | |
pipeline_wrapper = rs.pipeline_wrapper(pipeline) | |
resized_color_image = cv2.resize(color_image, dsize=(depth_colormap_dim[1], depth_colormap_dim[0]), interpolation=cv2.INTER_AREA) | |
opencv_viewer_example.color_colormap_dim = color_image.shape |
Definition at line 50 of file opencv_viewer_example.py.
opencv_viewer_example.color_frame = frames.get_color_frame() |
Definition at line 38 of file opencv_viewer_example.py.
opencv_viewer_example.color_image = np.asanyarray(color_frame.get_data()) |
Definition at line 44 of file opencv_viewer_example.py.
opencv_viewer_example.config = rs.config() |
Definition at line 14 of file opencv_viewer_example.py.
opencv_viewer_example.depth_colormap = cv2.applyColorMap(cv2.convertScaleAbs(depth_image, alpha=0.03), cv2.COLORMAP_JET) |
Definition at line 47 of file opencv_viewer_example.py.
opencv_viewer_example.depth_colormap_dim = depth_colormap.shape |
Definition at line 49 of file opencv_viewer_example.py.
opencv_viewer_example.depth_frame = frames.get_depth_frame() |
Definition at line 37 of file opencv_viewer_example.py.
opencv_viewer_example.depth_image = np.asanyarray(depth_frame.get_data()) |
Definition at line 43 of file opencv_viewer_example.py.
opencv_viewer_example.device = pipeline_profile.get_device() |
Definition at line 19 of file opencv_viewer_example.py.
opencv_viewer_example.device_product_line = str(device.get_info(rs.camera_info.product_line)) |
Definition at line 20 of file opencv_viewer_example.py.
opencv_viewer_example.frames = pipeline.wait_for_frames() |
Definition at line 36 of file opencv_viewer_example.py.
opencv_viewer_example.images = np.hstack((resized_color_image, depth_colormap)) |
Definition at line 55 of file opencv_viewer_example.py.
opencv_viewer_example.pipeline = rs.pipeline() |
Definition at line 13 of file opencv_viewer_example.py.
opencv_viewer_example.pipeline_profile = config.resolve(pipeline_wrapper) |
Definition at line 18 of file opencv_viewer_example.py.
opencv_viewer_example.pipeline_wrapper = rs.pipeline_wrapper(pipeline) |
Definition at line 17 of file opencv_viewer_example.py.
opencv_viewer_example.resized_color_image = cv2.resize(color_image, dsize=(depth_colormap_dim[1], depth_colormap_dim[0]), interpolation=cv2.INTER_AREA) |
Definition at line 54 of file opencv_viewer_example.py.