Classes | |
| class | Device |
| class | DeviceManager |
Functions | |
| def | enumerate_connected_devices (context) |
| def | post_process_depth_frame (depth_frame, decimation_magnitude=1.0, spatial_magnitude=2.0, spatial_smooth_alpha=0.5, spatial_smooth_delta=20, temporal_smooth_alpha=0.4, temporal_smooth_delta=20) |
Variables | |
| c = rs.config() | |
| device_extrinsics = device_manager.get_depth_to_color_extrinsics(frames) | |
| device_manager = DeviceManager(rs.context(), c) | |
| frames = device_manager.poll_frames() | |
| def realsense_device_manager.enumerate_connected_devices | ( | context | ) |
Enumerate the connected Intel RealSense devices
Parameters:
-----------
context : rs.context()
The context created for using the realsense library
Return:
-----------
connect_device : array
Array of enumerated devices which are connected to the PC
Definition at line 27 of file realsense_device_manager.py.
| def realsense_device_manager.post_process_depth_frame | ( | depth_frame, | |
decimation_magnitude = 1.0, |
|||
spatial_magnitude = 2.0, |
|||
spatial_smooth_alpha = 0.5, |
|||
spatial_smooth_delta = 20, |
|||
temporal_smooth_alpha = 0.4, |
|||
temporal_smooth_delta = 20 |
|||
| ) |
Filter the depth frame acquired using the Intel RealSense device
Parameters:
-----------
depth_frame : rs.frame()
The depth frame to be post-processed
decimation_magnitude : double
The magnitude of the decimation filter
spatial_magnitude : double
The magnitude of the spatial filter
spatial_smooth_alpha : double
The alpha value for spatial filter based smoothening
spatial_smooth_delta : double
The delta value for spatial filter based smoothening
temporal_smooth_alpha: double
The alpha value for temporal filter based smoothening
temporal_smooth_delta: double
The delta value for temporal filter based smoothening
Return:
----------
filtered_frame : rs.frame()
The post-processed depth frame
Definition at line 50 of file realsense_device_manager.py.
| realsense_device_manager.c = rs.config() |
Definition at line 303 of file realsense_device_manager.py.
| realsense_device_manager.device_extrinsics = device_manager.get_depth_to_color_extrinsics(frames) |
Definition at line 313 of file realsense_device_manager.py.
| realsense_device_manager.device_manager = DeviceManager(rs.context(), c) |
Definition at line 308 of file realsense_device_manager.py.
| realsense_device_manager.frames = device_manager.poll_frames() |
Definition at line 311 of file realsense_device_manager.py.