depthai icon indicating copy to clipboard operation
depthai copied to clipboard

[SDK Feature-Request] {Addition for outNetwork output to SDK}

Open moratom opened this issue 2 years ago • 0 comments

Start with the why:

The outNetwork output (https://github.com/luxonis/depthai-core/blob/125feb8c2e16ee4bf71b7873a7b990f1c5f17b18/include/depthai/pipeline/node/DetectionNetwork.hpp#L38) can be useful as neural networks that are fed into DetectionNetwork can have more layers than just the ones that are used for Yolo parsing.

Move to the what:

Add the outNetwork output to NNComponent and integrate it so it can be synced with other messages.

The end usage could then look something like this:

from depthai_sdk import OakCamera
import depthai as dai

with OakCamera() as oak:
    color = oak.create_camera('color,c', resolution=dai.ColorCameraProperties.SensorResolution.THE_1080_P)
    nn = oak.create_nn('yolohef.json', color)
    oak.sync([color, nn.out.main, nn.out.outNetwork], ...)

moratom avatar Apr 14 '23 13:04 moratom