pyrealsense2.playback

class pyrealsense2.playback
__init__(self: pyrealsense2.playback, device: pyrealsense2.device) → None

Methods

__init__((self: pyrealsense2.playback, ...)
as_auto_calibrated_device(...)
as_debug_protocol(...)
as_playback(...)
as_recorder(...)
as_tm2((self: pyrealsense2.device) -> rs2::tm2)
as_updatable(...)
as_update_device(...)
current_status(...) Returns the current state of the playback device
file_name((self: pyrealsense2.playback) -> str) The name of the playback file.
first_color_sensor(...)
first_depth_sensor(...)
first_fisheye_sensor(...)
first_motion_sensor(...)
first_pose_sensor(...)
first_roi_sensor(...)
get_duration(...) Retrieves the total duration of the file.
get_info((self: pyrealsense2.device, ...) Retrieve camera specific information, like versions of various internal components
get_position(...) Retrieves the current position of the playback in the file in terms of time.
hardware_reset(...) Send hardware reset request to the device
is_auto_calibrated_device(...)
is_debug_protocol(...)
is_playback((self: pyrealsense2.device) -> bool)
is_real_time(...) Indicates if playback is in real time mode or non real time.
is_recorder((self: pyrealsense2.device) -> bool)
is_tm2((self: pyrealsense2.device) -> bool)
is_updatable((self: pyrealsense2.device) -> bool)
is_update_device(...)
pause((self: pyrealsense2.playback) -> None) Pauses the playback.
query_sensors(...) Returns the list of adjacent devices, sharing the same physical parent composite device.
resume((self: pyrealsense2.playback) -> None) Un-pauses the playback.
seek((self: pyrealsense2.playback, ...) Sets the playback to a specified time point of the played data.
set_real_time((self: pyrealsense2.playback, ...) Set the playback to work in real time or non real time.
set_status_changed_callback(...) Register to receive callback from playback device upon its status changes.
supports((self: pyrealsense2.device, ...) Check if specific camera info is supported.

Attributes

sensors List of adjacent devices, sharing the same physical parent composite device.
current_status(self: pyrealsense2.playback) → pyrealsense2.playback_status

Returns the current state of the playback device

file_name(self: pyrealsense2.playback) → str

The name of the playback file.

get_duration(self: pyrealsense2.playback) → datetime.timedelta

Retrieves the total duration of the file.

get_position(self: pyrealsense2.playback) → int

Retrieves the current position of the playback in the file in terms of time. Units are expressed in nanoseconds.

is_real_time(self: pyrealsense2.playback) → bool

Indicates if playback is in real time mode or non real time.

pause(self: pyrealsense2.playback) → None

Pauses the playback. Calling pause() in “Paused” status does nothing. If pause() is called while playback status is “Playing” or “Stopped”, the playback will not play until resume() is called.

resume(self: pyrealsense2.playback) → None

Un-pauses the playback. Calling resume() while playback status is “Playing” or “Stopped” does nothing.

seek(self: pyrealsense2.playback, time: datetime.timedelta) → None

Sets the playback to a specified time point of the played data.

set_real_time(self: pyrealsense2.playback, real_time: bool) → None

Set the playback to work in real time or non real time. In real time mode, playback will play the same way the file was recorded. If the application takes too long to handle the callback, frames may be dropped. In non real time mode, playback will wait for each callback to finish handling the data before reading the next frame. In this mode no frames will be dropped, and the application controls the framerate of playback via callback duration.

set_status_changed_callback(self: pyrealsense2.playback, callback: Callable[[pyrealsense2.playback_status], None]) → None

Register to receive callback from playback device upon its status changes. Callbacks are invoked from the reading thread, and as such any heavy processing in the callback handler will affect the reading thread and may cause frame drops/high latency.