I'm trying to do segmentation in C++ using the above example as a guide but it's not working. I wonder if someone in the know could offer some guidance as I can't find any documentation that helps.
I already have everything working with the OAK-1 for mobilenet and YOLO detection so my setup must be ok.
Looking at what I might have to change from, say my mobilenet code, I am guessing that firstly the creation of the pipeline has to be different?
Instead of:
auto nn = pipeline.create<dai::node::MobileNetDetectionNetwork>();
Should I use the following?
auto nn = pipeline.create<dai::node::NeuralNetwork>()
If not, what should I use instead?
If this is correct then what do I do to capture the segmentation results?
I am currently doing this:
auto q_nn = device.getOutputQueue("nn", 4, false);
auto nndata = q_nn->get<dai::NNData>();
CIntVector res;
if (nndata)
res = nndata->getFirstLayerInt32();
The problem is this seems to hang indefinitely and no NNData is returned.
Btw. I'm using road-segmentation-adas-0001_openvino_2021.4_6shave.blob
for this.
Clearly I am missing something so any pointers would be much appreciated.