oakutils.core package
Module contents
Submodule for core utilities for working with the OAK-D.
Functions
- create_device
Create a DepthAI device object from a pipeline.
- oakutils.core.create_device(pipeline: Pipeline, device_id: str | None = None, max_usb_speed: UsbSpeed | None = None) DeviceBase
Create a DepthAI device object from a pipeline.
- Parameters:
pipeline (dai.Pipeline) – The pipeline to use
device_id (str, optional) – The id of the device to use, by default None This can be a MXID, IP address, or USB port name. Examples: “14442C108144F1D000”, “192.168.1.44”, “3.3.3”
max_usb_speed (dai.UsbSpeed, optional) – The maximum USB speed to use, by default None Options are available in dai.UsbSpeed
- Returns:
The DepthAI device object
- Return type:
dai.Device