pyrealsense2¶
Librealsense Python Bindings¶
Library for accessing RealSense cameras
Functions
|
Enable per-frame metadata at OS level for connected D400/D500 devices. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Given pixel coordinates and depth in an image with no distortion or inverse distortion coefficients, compute the corresponding point in 3D space relative to the same camera |
|
Calculate horizontal and vertical field of view, based on video intrinsics |
|
Given pixel coordinates of the color image and a minimum and maximum depth, compute the corresponding pixel coordinates in the depth image. |
|
Given a point in 3D space, compute the corresponding pixel coordinates in an image with no distortion or forward distortion coefficients produced by the same camera |
|
Transform 3D coordinates relative to one sensor to 3D coordinates relative to another viewpoint |
|
Check if device supports ethernet configuration |
|
|
|
Classes
Performs alignment between depth image and another image. |
|
Calib Location |
|
Calibration target type. |
|
Calibration callback status for use in device_calibration.trigger_device_calibration |
|
Calibration type for use in device_calibration |
|
This information is mainly available for camera debug and troubleshooting and should not be used in applications. |
|
For colored-IR devices: how auto exposure is arbitrated between the color and depth pipelines |
|
Colorizer filter generates color images based on input depth frame |
|
IMU combined GYRO & ACCEL data |
|
Extends the frame class with additional frameset related attributes and functions |
|
Identifies a composite (multi-field, atomically-exchanged) control - a completely separate identity space from rs2_option. |
|
The config allows pipeline users to request filters for the pipeline streams and device selection and configuration. |
|
Librealsense context class. |
|
For D500: intercamera synchronization mode |
|
Performs downsampling by using the median with specific kernel size. |
|
Decimation Filter DPP composite option payload - see rs_decimation_filter_dpp.h. |
|
Supported {min,max,step,default} bounds for decimation_filter_dpp_config - see rs_decimation_filter_dpp.h. |
|
Extends the video_frame class with additional depth related attributes and functions. |
|
Encapsulates connect/disconnect handling and waiting for devices. |
|
Extends the depth_frame class with additional disparity related attributes and functions. |
|
Converts from depth representation to disparity representation and vice - versa in depth frames |
|
Distortion model: defines how pixel coordinates should be mapped to sensor coordinates. |
|
Wire header shared by the HKR DPP composite-option control family - see rs_dpp_header.h. |
|
Define the embedded decimation filter workflow. |
|
Define the embedded filter workflow. |
|
Embedded Filter Type |
|
Define the embedded temporal filter workflow. |
|
Values for the emitter mode option |
|
Ethernet configuration extension for devices that support ethernet configuration |
|
Specifies advanced interfaces (capabilities) objects may implement. |
|
Cross-stream extrinsics: encodes the topology describing how the different devices are oriented. |
|
Define the filter workflow, inherit this class to generate your own filter. |
|
Interface for frame filtering functionality |
|
A stream's format identifies how binary data is encoded within a frame. |
|
Base class for multiple frame extensions |
|
Per-Frame-Metadata is the set of read-only properties that might be exposed for each individual frame. |
|
Frame queues are the simplest cross-platform synchronization primitive provided by librealsense to help developers who are not using async APIs. |
|
The source used to generate frames, which is usually done by the low level driver for each sensor. |
|
Extends the frame class for a GPU-resident (zero-copy) frame on integrated-GPU CUDA builds. |
|
Merges depth frames with different sequence ID |
|
Improved Close Range Control composite option payload - see rs_hdrd_control.h. |
|
Supported {min,max,step,default} bounds for hdrd_control - see rs_hdrd_control.h. |
|
The processing performed depends on the selected hole filling mode. |
|
Video stream intrinsics. |
|
For L500 devices: provides optimized settings (presets) for specific types of usage. |
|
Extends the frame class with additional labeled points related attributes and functions. |
|
Members: |
|
Severity of the librealsense logger. |
|
Specifies types of different matchers. |
|
Motion device intrinsics: scale, bias, and variances. |
|
Extends the frame class with additional motion related attributes and functions |
|
All the parameters required to define a motion stream. |
|
Stream profile instance which contains IMU-specific intrinsics. |
|
Category of the librealsense notification. |
|
Extends perception_frame class with additional object detection related attributes and functions. |
|
Defines general configuration controls. |
|
The different types option values can take on |
|
Base class for options interface. |
|
Extends the frame class with attributes inferred from the frame content, such as object detection results. |
|
All the parameters required to define a perception stream. |
|
Stream profile for perception streams. |
|
The pipeline simplifies the user interaction with the device and computer vision processing modules. |
|
The pipeline profile includes a device and a selection of active streams, with specific profiles. |
|
Members: |
|
Generates 3D point clouds based on a depth frame. |
|
Extends the frame class with additional point cloud related attributes and functions. |
|
Extends the frame class with additional pose related attributes and functions. |
|
All the parameters required to define a pose stream. |
|
Stream profile instance with an explicit pose extension type. |
|
Define the processing block workflow, inherit this class to generate your own processing_block. |
|
Members: |
|
Quaternion used to represent rotation. |
|
Records the given device and saves it to the given file as rosbag format. |
|
Performs rotation of frames. |
|
For D400 devices: provides optimized settings (presets) for specific types of usage. |
|
Safety Mode |
|
Splits depth frames with different sequence ID |
|
All the parameters required to define a motion frame. |
|
All the parameters required to define a sensor notification. |
|
All the parameters required to define a pose frame. |
|
All the parameters required to define a video frame |
|
Spatial filter smooths the image by calculating frame with alpha and delta settings. |
|
Streams are different types of data provided by RealSense devices. |
|
Stores details about the profile of a stream. |
|
Sync instance to align frames from different streams |
|
Temporal filter smooths the image by calculating multiple frames with alpha and delta settings. |
|
Temporal Filter DPP composite option payload - see rs_temporal_filter_dpp.h. |
|
Supported {min,max,step,default} bounds for temporal_filter_dpp_config - see rs_temporal_filter_dpp.h. |
|
Depth thresholding filter. |
|
Specifies the clock in relation to which the frame timestamp was measured. |
|
3D vector in Euclidean coordinate space. |
|
Extends the frame class with additional video related attributes and functions. |
|
All the parameters required to define a video stream. |
|
Stream profile instance which contains additional video attributes. |
|
Converts frames in raw YUY format to RGB. |