oakutils.nodes.buffer package
Module contents
Submodule for making sending and receiving data from the OAK-D easier.
Classes
- Buffer
Class for creating a buffer for sending and receiving data from the OAK-D.
- MultiBuffer
Class for creating a buffer for sending and receiving multiple data streams from the OAK-D.
- SimpleBuffer
Class for creating a buffer for sending and receiving data from the OAK-D.
Functions
- create_synced_buffer
Creates a function for getting packets of data from multiple streams.
- class oakutils.nodes.buffer.Buffer(device: dai.DeviceBase, input_stream: str | list[str], output_stream: str | list[str])
Bases:
objectBuffer for sending and receiving data from OAK-D.
- cycle(data: np.ndarray | list[np.ndarray]) dai.ADatatype | list[dai.ADatatype]
Cycle data through the buffer.
- class oakutils.nodes.buffer.MultiBuffer(device: dai.DeviceBase, input_streams: Sequence[str | list[str]], output_streams: Sequence[str | list[str]])
Bases:
objectClass for creating multiple Buffers for sending and receiving data from the OAK-D.
- cycle(data: list[np.ndarray | list[np.ndarray]]) list[dai.ADatatype | list[dai.ADatatype]]
Cycle data through the multi buffer.
- class oakutils.nodes.buffer.SimpleBuffer(device: dai.DeviceBase, input_stream: str, output_stream: str)
Bases:
objectBuffer for sending and receiving data from OAK-D.
- cycle(data: np.ndarray) dai.ADatatype
Cycle data through the buffer.
- Parameters:
data (np.ndarray) – The data to cycle through the buffer.
- Returns:
The data cycled through the buffer.
- Return type:
dai.ADatatype
- receive() dai.ADatatype
Receive data from the buffer.
- Returns:
The data received from the buffer.
- Return type:
dai.ADataType