pyrealsense2.frame_source

class pyrealsense2.frame_source

The source used to generate frames, which is usually done by the low level driver for each sensor. frame_source is one of the parameters of processing_block’s callback function, which can be used to re-generate the frame and via frame_ready invoke another callback function to notify application frame is ready.

__init__()

Initialize self. See help(type(self)) for accurate signature.

Methods

allocate_composite_frame(...) Allocate composite frame with given params
allocate_points(...)
allocate_video_frame(...) Allocate a new video frame with given params
frame_ready(...) Invoke the callback funtion informing the frame is ready.
allocate_composite_frame(self: pyrealsense2.frame_source, frames: List[pyrealsense2.frame]) → pyrealsense2.frame

Allocate composite frame with given params

allocate_points(self: pyrealsense2.frame_source, profile: pyrealsense2.stream_profile, original: pyrealsense2.frame) → pyrealsense2.frame
allocate_video_frame(self: pyrealsense2.frame_source, profile: pyrealsense2.stream_profile, original: pyrealsense2.frame, new_bpp: int=0, new_width: int=0, new_height: int=0, new_stride: int=0, frame_type: pyrealsense2.extension=extension.video_frame) → pyrealsense2.frame

Allocate a new video frame with given params

frame_ready(self: pyrealsense2.frame_source, result: pyrealsense2.frame) → None

Invoke the callback funtion informing the frame is ready.