• Community
  • Maximum pipelines without loosing frames

Hi everybody,

we just got a new OAK-D and I have been playing around with it a little. Very impressive and the examples work really well. One thing I have been looking for is collecting data from the device enabling depth, rgb, left and right mono camera and imu pipeline without loosing data.

We have this camera. My goal would be setting the following pipelines.

    // Define sources and outputs
    auto camRgb = pipeline.create<dai::node::ColorCamera>();
    auto left = pipeline.create<dai::node::MonoCamera>();
    auto right = pipeline.create<dai::node::MonoCamera>();
    auto stereo = pipeline.create<dai::node::StereoDepth>();

    auto rgbOut = pipeline.create<dai::node::XLinkOut>();
    auto depthOut = pipeline.create<dai::node::XLinkOut>();

    auto xoutRectifL = pipeline.create<dai::node::XLinkOut>();
    auto xoutRectifR = pipeline.create<dai::node::XLinkOut>();

    auto imu = pipeline.create<dai::node::IMU>();
    auto xlinkOut = pipeline.create<dai::node::XLinkOut>();
  1. Are these pipelines even possible. I am not sure if I can get rectified image left and right as well as the depth? Also is the bandwidth of the USB3.1 allowing for this data throughput?
  2. Is there an example that describes getting as much data as possible from the device?
  3. What would be the optimal solution for getting the data from the device? I looked into this example using "Device Queue Events", but I am not sure if hat would be the preferred method.
  • erik replied to this.

    Hi christoph ,

    1. Yes they are possible, for bandwidth - best to calculate it depending on FPS and potential video encoding, USB3 supports 5gbps.
    2. I'd suggest using SDK recording feature. On develop branch we have already supported saving IMU as well into MCAP format.
    3. Any kind could work, queue callbacks or .tryGet() and likely pushing the msgs to a new thread which then saves all the data to the disk. So it really depends on your preference and is more of an implementation detail.

    Thanks, Erik