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__(*args, **kwargs)

Methods

__init__(*args, **kwargs)

allocate_composite_frame(self, frames)

Allocate composite frame with given params

allocate_motion_frame(self, profile, ...)

Allocate a new motion frame with given params

allocate_points(self, profile, original)

allocate_video_frame(self, profile, ...)

Allocate a new video frame with given params

frame_ready(self, result)

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_motion_frame(self: pyrealsense2.frame_source, profile: pyrealsense2.stream_profile, original: pyrealsense2.frame, frame_type: pyrealsense2.extension = <extension.motion_frame: 9>) pyrealsense2.frame

Allocate a new motion 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: 8>) 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.