pyrealsense2.frame_queue¶
-
class
pyrealsense2.
frame_queue
¶ Frame queues are the simplest cross-platform synchronization primitive provided by librealsense to help developers who are not using async APIs.
-
__init__
(*args, **kwargs)¶ Overloaded function.
- __init__(self: pyrealsense2.frame_queue) -> None
- __init__(self: pyrealsense2.frame_queue, capacity: int, keep_frames: bool=False) -> None
Methods
__init__
(*args, **kwargs)Overloaded function. capacity
((self: pyrealsense2.frame_queue) -> int)Return the capacity of the queue. enqueue
((self: pyrealsense2.frame_queue, ...)Enqueue a new frame into the queue. keep_frames
(...)Return whether or not the queue calls keep on enqueued frames. poll_for_frame
(...)Poll if a new frame is available and dequeue it if it is try_wait_for_frame
(...)wait_for_frame
(...)Wait until a new frame becomes available in the queue and dequeue it. -
capacity
(self: pyrealsense2.frame_queue) → int¶ Return the capacity of the queue.
-
enqueue
(self: pyrealsense2.frame_queue, f: pyrealsense2.frame) → None¶ Enqueue a new frame into the queue.
-
keep_frames
(self: pyrealsense2.frame_queue) → bool¶ Return whether or not the queue calls keep on enqueued frames.
-
poll_for_frame
(self: pyrealsense2.frame_queue) → pyrealsense2.frame¶ Poll if a new frame is available and dequeue it if it is
-
try_wait_for_frame
(self: pyrealsense2.frame_queue, timeout_ms: int=5000) → Tuple[bool, pyrealsense2.frame]¶
-
wait_for_frame
(self: pyrealsense2.frame_queue, timeout_ms: int=5000) → pyrealsense2.frame¶ Wait until a new frame becomes available in the queue and dequeue it.
-